diff options
| author | Brian Waldon <brian.waldon@rackspace.com> | 2011-10-17 14:49:28 -0400 |
|---|---|---|
| committer | Brian Waldon <brian.waldon@rackspace.com> | 2011-10-17 18:22:31 -0400 |
| commit | d04007efd236f9cacf381b622b19cdad7e4529e8 (patch) | |
| tree | df6aad1caa92a8993c6235f8ec9b9d5d9ce96e44 /nova/api | |
| parent | 821fae95d6aa86ffd14a4e48254da8ee7392c042 (diff) | |
Refactoring nova.tests.api.openstack.test_flavors
Change-Id: I668e7b7fb379a99edee8a8f5ca948a32c0ba9896
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/flavors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/flavors.py b/nova/api/openstack/flavors.py index 0727ee258..f9fe0f804 100644 --- a/nova/api/openstack/flavors.py +++ b/nova/api/openstack/flavors.py @@ -69,7 +69,7 @@ class Controller(object): ctxt = req.environ['nova.context'] flavor = db.api.instance_type_get_by_flavor_id(ctxt, 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) |
