diff options
| author | John Tran <jtran@attinteractive.com> | 2011-07-08 14:19:35 -0700 |
|---|---|---|
| committer | John Tran <jtran@attinteractive.com> | 2011-07-08 14:19:35 -0700 |
| commit | 17fceb2368d63dd937dc5e9385158c01130557a7 (patch) | |
| tree | 847c414a1a18b2ae0c3a4c5752c22282177df5f2 /nova/api | |
| parent | 2c3eeb5f9f5f78d9cb8fb3e37d5b5e1610d32499 (diff) | |
peer review fix - per vish: 'This method automatically converts unknown formats to ami, which is the same logic used to display unknown images in the ec2 api. This will allow you to properly deregister raw images, etc.'
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/cloud.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index a4f4dae4f..ee263f614 100644 --- a/nova/api/ec2/cloud.py +++ b/nova/api/ec2/cloud.py @@ -1095,7 +1095,7 @@ class CloudController(object): except exception.NotFound: raise exception.ImageNotFound(image_id=ec2_id) image_type = ec2_id.split('-')[0] - if image.get('container_format') != image_type: + if self._image_type(image.get('container_format')) != image_type: raise exception.ImageNotFound(image_id=ec2_id) return image |
