mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
PEP8 W601...
This commit is contained in:
parent
bbda079fa5
commit
7749cc081c
1 changed files with 2 additions and 2 deletions
|
@ -250,7 +250,7 @@ def image_show(id=None, name=None, profile=None): # pylint: disable=C0103
|
|||
if len(schema.keys()) == 1:
|
||||
schema = schema['image']
|
||||
for key in schema.keys():
|
||||
if image.has_key(key):
|
||||
if key in image:
|
||||
ret[image.name][key] = image[key]
|
||||
return ret
|
||||
|
||||
|
@ -285,7 +285,7 @@ def image_list(id=None, profile=None): # pylint: disable=C0103
|
|||
}
|
||||
# Those cause AttributeErrors in Icehouse' glanceclient
|
||||
for attr in ['container_format', 'disk_format', 'size']:
|
||||
if image.has_key(attr):
|
||||
if attr in image:
|
||||
ret[image.name][attr] = image[attr]
|
||||
if id == image.id:
|
||||
return ret[image.name]
|
||||
|
|
Loading…
Add table
Reference in a new issue