summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorKen Pepple <ken.pepple@gmail.com>2011-04-05 19:21:05 -0700
committerKen Pepple <ken.pepple@gmail.com>2011-04-05 19:21:05 -0700
commitdfcdafde2dc202aa3325cd1cea8d809f56fdde57 (patch)
treee75f87e4850dbb289d05c311edf50ba2f0cd1a19 /nova
parent94ccd2f4a1c42a8574fe65972650428130ae850d (diff)
downloadnova-dfcdafde2dc202aa3325cd1cea8d809f56fdde57.tar.gz
nova-dfcdafde2dc202aa3325cd1cea8d809f56fdde57.tar.xz
nova-dfcdafde2dc202aa3325cd1cea8d809f56fdde57.zip
return image create response as image dict
Diffstat (limited to 'nova')
-rw-r--r--nova/api/openstack/images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/images.py b/nova/api/openstack/images.py
index e77100d7b..e3f93f635 100644
--- a/nova/api/openstack/images.py
+++ b/nova/api/openstack/images.py
@@ -130,7 +130,7 @@ class Controller(wsgi.Controller):
raise webob.exc.HTTPBadRequest()
image = self._compute_service.snapshot(context, server_id, image_name)
- return self.get_builder(req).build(image, detail=True)
+ return dict(image=self.get_builder(req).build(image, detail=True))
def get_builder(self, request):
"""Indicates that you must use a Controller subclass."""