summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorSoren Hansen <soren@linux2go.dk>2011-02-16 20:34:30 +0100
committerSoren Hansen <soren@linux2go.dk>2011-02-16 20:34:30 +0100
commit84770a2679ac069e214f5ce167b8abb70fafa878 (patch)
tree258f024879f83056cda21395c43f1ea1c74012ba /nova/api
parent56ebab08b29da2ed9a4ec29bb1c0695371acc142 (diff)
parent17abf5c23f90f15b557131f71657e70e7b5cdef8 (diff)
Merge trunk
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/cloud.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index 16a3a4521..6919cd8d2 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -883,6 +883,9 @@ class CloudController(object):
% attribute)
try:
image = self.image_service.show(context, image_id)
+ image = self._format_image(context,
+ self.image_service.show(context,
+ image_id))
except IndexError:
raise exception.ApiError(_('invalid id: %s') % image_id)
result = {'image_id': image_id, 'launchPermission': []}