summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2011-11-08 22:20:41 +0000
committerGerrit Code Review <review@openstack.org>2011-11-08 22:20:41 +0000
commitbc50195e129a2070d98f66732ca6bd5dbf666b2c (patch)
treeabb0f39354c79fdf88dd0d9c4cd0004fd89578ff /nova/api
parent25ac04b9b8c3782212537758bdf9ac706bc166f7 (diff)
parent0d36d2bf9eba28123c172fd24780f0ebe95db10a (diff)
downloadnova-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.py4
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):