summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrey Morris <trey.morris@rackspace.com>2010-12-23 22:00:44 +0000
committerTrey Morris <trey.morris@rackspace.com>2010-12-23 22:00:44 +0000
commit6df8d6827d48572ba4cc7cf13fd69286f0dcafe1 (patch)
tree3971ce5b818a8d5477546c0e8cdd597b21e52a8b
parent5f8d02b39fb8917b34b68bbbf450656e1b68211c (diff)
downloadnova-6df8d6827d48572ba4cc7cf13fd69286f0dcafe1.tar.gz
nova-6df8d6827d48572ba4cc7cf13fd69286f0dcafe1.tar.xz
nova-6df8d6827d48572ba4cc7cf13fd69286f0dcafe1.zip
fixed typo
-rw-r--r--nova/api/openstack/images.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/images.py b/nova/api/openstack/images.py
index 515fd4423..787e23acc 100644
--- a/nova/api/openstack/images.py
+++ b/nova/api/openstack/images.py
@@ -108,7 +108,7 @@ class Controller(wsgi.Controller):
def index(self, req):
"""Return all public images in brief"""
items = self._service.index(req.environ['nova.context'])
- items = common.limited(images, req)
+ items = common.limited(items, req)
items = [_entity_inst(item) for item in items]
return dict(images=items)
@@ -118,7 +118,7 @@ class Controller(wsgi.Controller):
items = self._service.detail(req.environ['nova.context'])
except NotImplementedError:
items = self._service.index(req.environ['nova.context'])
- items = common.limited(images, req)
+ items = common.limited(items, req)
items = [_entity_detail(item) for item in items]
return dict(images=items)