summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJohn Tran <jtran@attinteractive.com>2011-05-12 12:04:39 -0700
committerJohn Tran <jtran@attinteractive.com>2011-05-12 12:04:39 -0700
commit0a3da155228228d3f0eeac1efdea1e29eef2f3a0 (patch)
treea9a3c2a18a01b82505c0a469148f6a97c9d9cfe8 /nova/api
parent86952493efb67b64b23766af094aa22deb21307f (diff)
changed NotFound exception to ImageNotFound
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/cloud.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index 8a54d23f2..ad8c3fe90 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -823,8 +823,7 @@ class CloudController(object):
kwargs['ramdisk_id'] = ramdisk['id']
image = self._get_image(context, kwargs['image_id'])
if not image:
- raise exception.NotFound(_('Image %s not found') %
- kwargs['image_id'])
+ raise exception.ImageNotFound(kwargs['image_id'])
try:
available = (image['properties']['image_state'] == 'available')
except KeyError: