summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
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)