Corrects an AttributeError in the quota API.
Fixes bug 972001. Change-Id: Iaf833bb6dae9cc17689e9f13eff917e91a2b722a
This commit is contained in:
parent
276716e790
commit
4ceb1adc48
1
Authors
1
Authors
@ -66,6 +66,7 @@ Evan Callicoat <diopter@gmail.com>
|
||||
Ewan Mellor <ewan.mellor@citrix.com>
|
||||
François Charlier <francois.charlier@enovance.com>
|
||||
Gabe Westmaas <gabe.westmaas@rackspace.com>
|
||||
Gabriel Hurley <gabriel@strikeawe.com>
|
||||
Gary Kotton <garyk@radware.com>
|
||||
Gaurav Gupta <gaurav@denali-systems.com>
|
||||
Greg Althaus <galthaus@austin.rr.com>
|
||||
|
@ -20,6 +20,7 @@ import webob
|
||||
from nova.api.openstack import wsgi
|
||||
from nova.api.openstack import xmlutil
|
||||
from nova.api.openstack import extensions
|
||||
from nova.db.sqlalchemy import api as sqlalchemy_api
|
||||
from nova import db
|
||||
from nova import exception
|
||||
from nova import quota
|
||||
@ -57,7 +58,7 @@ class QuotaSetsController(object):
|
||||
context = req.environ['nova.context']
|
||||
authorize(context)
|
||||
try:
|
||||
db.sqlalchemy.api.authorize_project_context(context, id)
|
||||
sqlalchemy_api.authorize_project_context(context, id)
|
||||
return self._format_quota_set(id,
|
||||
quota.get_project_quotas(context, id))
|
||||
except exception.NotAuthorized:
|
||||
|
Loading…
x
Reference in New Issue
Block a user