diff options
| author | Ken Pepple <ken.pepple@gmail.com> | 2011-04-05 19:21:05 -0700 |
|---|---|---|
| committer | Ken Pepple <ken.pepple@gmail.com> | 2011-04-05 19:21:05 -0700 |
| commit | dfcdafde2dc202aa3325cd1cea8d809f56fdde57 (patch) | |
| tree | e75f87e4850dbb289d05c311edf50ba2f0cd1a19 | |
| parent | 94ccd2f4a1c42a8574fe65972650428130ae850d (diff) | |
| download | nova-dfcdafde2dc202aa3325cd1cea8d809f56fdde57.tar.gz nova-dfcdafde2dc202aa3325cd1cea8d809f56fdde57.tar.xz nova-dfcdafde2dc202aa3325cd1cea8d809f56fdde57.zip | |
return image create response as image dict
| -rw-r--r-- | nova/api/openstack/images.py | 2 |
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.""" |
