Skip to content

Commit f8ea57f

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix nova-manage image_property show unexpected keyword" into stable/2023.1
2 parents 9cad74c + b128957 commit f8ea57f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nova/cmd/manage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3195,7 +3195,7 @@ class ImagePropertyCommands:
31953195
'instance_uuid', metavar='<instance_uuid>',
31963196
help='UUID of the instance')
31973197
@args(
3198-
'property', metavar='<image_property>',
3198+
'image_property', metavar='<image_property>',
31993199
help='Image property to show')
32003200
def show(self, instance_uuid=None, image_property=None):
32013201
"""Show value of a given instance image property.
@@ -3213,10 +3213,10 @@ def show(self, instance_uuid=None, image_property=None):
32133213
with context.target_cell(ctxt, im.cell_mapping) as cctxt:
32143214
instance = objects.Instance.get_by_uuid(
32153215
cctxt, instance_uuid, expected_attrs=['system_metadata'])
3216-
image_property = instance.system_metadata.get(
3216+
property_value = instance.system_metadata.get(
32173217
f'image_{image_property}')
3218-
if image_property:
3219-
print(image_property)
3218+
if property_value:
3219+
print(property_value)
32203220
return 0
32213221
else:
32223222
print(f'Image property {image_property} not found '

0 commit comments

Comments
 (0)