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:
Pádraig Brady
2012-01-27 17:58:17 +00:00
parent 58e652845e
commit ed6e3efcf6
+1 -2
View File
@@ -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()