summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2011-10-24 16:24:05 +0000
committerGerrit Code Review <review@openstack.org>2011-10-24 16:24:05 +0000
commit230b3af8486a877bb33845423775522ff47f07ea (patch)
treed58babb085b40431001fccdf8e7850ea220d9dad /nova/api
parent1dde1d10f9e25d8e29619376a936f4973f8363ab (diff)
parentd04007efd236f9cacf381b622b19cdad7e4529e8 (diff)
Merge "Refactoring nova.tests.api.openstack.test_flavors"
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/flavors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/flavors.py b/nova/api/openstack/flavors.py
index 4c3e860d6..afc900cce 100644
--- a/nova/api/openstack/flavors.py
+++ b/nova/api/openstack/flavors.py
@@ -70,7 +70,7 @@ class Controller(object):
ctxt = req.environ['nova.context']
flavor = instance_types.get_instance_type_by_flavor_id(id)
except exception.NotFound:
- return webob.exc.HTTPNotFound()
+ raise webob.exc.HTTPNotFound()
builder = self._get_view_builder(req)
values = builder.build(flavor, is_detail=True)