diff options
| author | John Tran <jtran@attinteractive.com> | 2011-05-12 12:04:39 -0700 |
|---|---|---|
| committer | John Tran <jtran@attinteractive.com> | 2011-05-12 12:04:39 -0700 |
| commit | 0a3da155228228d3f0eeac1efdea1e29eef2f3a0 (patch) | |
| tree | a9a3c2a18a01b82505c0a469148f6a97c9d9cfe8 /nova/api | |
| parent | 86952493efb67b64b23766af094aa22deb21307f (diff) | |
changed NotFound exception to ImageNotFound
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/cloud.py | 3 |
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: |
