summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorBrian Lamar <brian.lamar@rackspace.com>2011-03-24 18:59:11 -0400
committerBrian Lamar <brian.lamar@rackspace.com>2011-03-24 18:59:11 -0400
commit3d06c636537374557ee6ff77b7c0bc7718eafcdb (patch)
tree2657e644e023c04ea96d3f037cbd7f9dcdea0ac5 /nova/api
parentf900a3354e8a4d9925d1a28780942eee12efe91e (diff)
Added detail keywork and i18n as per suggestions.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/images.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/nova/api/openstack/images.py b/nova/api/openstack/images.py
index b01d991e8..be33bb656 100644
--- a/nova/api/openstack/images.py
+++ b/nova/api/openstack/images.py
@@ -62,7 +62,7 @@ class Controller(wsgi.Controller):
context = req.environ['nova.context']
images = self._image_service.index(context)
build = self.get_builder(req).build
- return dict(images=[build(image, False) for image in images])
+ return dict(images=[build(image, detail=False) for image in images])
def detail(self, req):
"""
@@ -73,7 +73,7 @@ class Controller(wsgi.Controller):
context = req.environ['nova.context']
images = self._image_service.detail(context)
build = self.get_builder(req).build
- return dict(images=[build(image, True) for image in images])
+ return dict(images=[build(image, detail=True) for image in images])
def show(self, req, id):
"""
@@ -88,10 +88,10 @@ class Controller(wsgi.Controller):
try:
image = self._image_service.show(context, image_id)
except exception.NotFound:
- ex = webob.exc.HTTPNotFound(explanation="Image not found.")
+ ex = webob.exc.HTTPNotFound(explanation=_("Image not found."))
raise faults.Fault(ex)
- return dict(image=self.get_builder(req).build(image, True))
+ return dict(image=self.get_builder(req).build(image, detail=True))
def delete(self, req, id):
"""
@@ -125,7 +125,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, True)
+ return self.get_builder(req).build(image, detail=True)
def get_builder(self, request):
"""Indicates that you must use a Controller subclass."""