fix nova-manage image convert exception
* bin/nova-manage (_convert_images): Don't convert the image id to a number as it's now a uuid. Change-Id: I4dfe5693d8f394fb9ee3f2c18c7e0b3f2524e931
This commit is contained in:
+1
-2
@@ -1962,8 +1962,7 @@ class ImageCommands(object):
|
||||
with open(image_path) as ifile:
|
||||
image = self.image_service.create(elevated, meta, ifile)
|
||||
new = image['id']
|
||||
print _("Image %(old)s converted to " \
|
||||
"%(new)s (%(new)08x).") % locals()
|
||||
print _("Image %(old)s converted to %(new)s.") % locals()
|
||||
except Exception as exc:
|
||||
print _("Failed to convert %(old)s: %(exc)s") % locals()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user