mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix return of image_list
This commit is contained in:
parent
9f923edfab
commit
a47509e7dd
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,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):
|
||||
ret[attr] = image[attr]
|
||||
ret[image.name][attr] = image[attr]
|
||||
if id == image.id:
|
||||
return ret[image.name]
|
||||
return ret
|
||||
|
|
Loading…
Add table
Reference in a new issue