summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-05-11 18:33:49 +0000
committerTarmac <>2011-05-11 18:33:49 +0000
commit1d7b698feefe1634dd4f1f3a1fc30e8480952fd9 (patch)
treee7b384536bd627e58c42fac9c60bae3c0e74020e /bin
parentb0ce21ed8f0be3c84e5f530549860c4916934f4e (diff)
parent3b0b69ddc02f57859b351d6d354a12d5955c09f1 (diff)
Fixes an issue with conversion of images that was introduced by exception refactoring. This makes the exceptions when trying to locate an ec2 id clearer and also adds some tests for the conversion methods.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-manage2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index 2f6af6e2d..a36ec86d0 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -972,7 +972,7 @@ class ImageCommands(object):
try:
internal_id = ec2utils.ec2_id_to_id(old_image_id)
image = self.image_service.show(context, internal_id)
- except exception.NotFound:
+ except (exception.InvalidEc2Id, exception.ImageNotFound):
image = self.image_service.show_by_name(context, old_image_id)
return image['id']