diff options
| author | Jenkins <jenkins@review.openstack.org> | 2011-11-08 22:20:41 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2011-11-08 22:20:41 +0000 |
| commit | bc50195e129a2070d98f66732ca6bd5dbf666b2c (patch) | |
| tree | abb0f39354c79fdf88dd0d9c4cd0004fd89578ff /nova/api | |
| parent | 25ac04b9b8c3782212537758bdf9ac706bc166f7 (diff) | |
| parent | 0d36d2bf9eba28123c172fd24780f0ebe95db10a (diff) | |
| download | nova-bc50195e129a2070d98f66732ca6bd5dbf666b2c.tar.gz nova-bc50195e129a2070d98f66732ca6bd5dbf666b2c.tar.xz nova-bc50195e129a2070d98f66732ca6bd5dbf666b2c.zip | |
Merge "Speed up tests a further 35 seconds"
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/contrib/quotas.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/contrib/quotas.py b/nova/api/openstack/contrib/quotas.py index 83d75394a..184b4d12f 100644 --- a/nova/api/openstack/contrib/quotas.py +++ b/nova/api/openstack/contrib/quotas.py @@ -49,7 +49,7 @@ class QuotaSetsController(object): return self._format_quota_set(id, quota.get_project_quotas(context, id)) except exception.NotAuthorized: - return webob.Response(status_int=403) + raise webob.exc.HTTPForbidden() def update(self, req, id, body): context = req.environ['nova.context'] @@ -65,7 +65,7 @@ class QuotaSetsController(object): except exception.ProjectQuotaNotFound: db.quota_create(context, project_id, key, value) except exception.AdminRequired: - return webob.Response(status_int=403) + raise webob.exc.HTTPForbidden() return {'quota_set': quota.get_project_quotas(context, project_id)} def defaults(self, req, id): |
