diff options
| author | Michael Gundlach <michael.gundlach@rackspace.com> | 2010-08-23 13:06:40 -0400 |
|---|---|---|
| committer | Michael Gundlach <michael.gundlach@rackspace.com> | 2010-08-23 13:06:40 -0400 |
| commit | f5c03fdd78a3bb8233e465c7624ed1fdb8f400fe (patch) | |
| tree | 340e239da652c245ee79338c99cf1b1fae23ece5 /nova/api | |
| parent | a50a200bc2547439a3da17e695224d3d434e14dd (diff) | |
| download | nova-f5c03fdd78a3bb8233e465c7624ed1fdb8f400fe.tar.gz nova-f5c03fdd78a3bb8233e465c7624ed1fdb8f400fe.tar.xz nova-f5c03fdd78a3bb8233e465c7624ed1fdb8f400fe.zip | |
Don't serialize in Controller subclass now that wsgi.Controller handles it for us
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/rackspace/images.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nova/api/rackspace/images.py b/nova/api/rackspace/images.py index 62e0b24c5..070100143 100644 --- a/nova/api/rackspace/images.py +++ b/nova/api/rackspace/images.py @@ -20,7 +20,6 @@ from nova.api.rackspace import base from nova.api.services.image import ImageService from webob import exc -#TODO(gundlach): Serialize return values class Controller(base.Controller): _serialization_metadata = { @@ -56,12 +55,12 @@ class Controller(base.Controller): """Return all public images.""" data = dict((self._to_rs_id(id), val) for id, val in self._svc.index().iteritems()) - return self.serialize(dict(images=data), req) + return dict(images=data) def show(self, req, id): """Return data about the given image id.""" opaque_id = self._from_rs_id(id) - return self.serialize(dict(image=self._svc.show(opaque_id)), req) + return dict(image=self._svc.show(opaque_id)) def delete(self, req, id): # Only public images are supported for now. |
