Incorrect policy and authorization extension name in
contrib quota api. Legacy from nova.
Change-Id: Ida8262ad63d6f881dd50a385a9913c2ed57b441c
Fixes: bug #1185974
QUOTAS = quota.QUOTAS
-authorize_update = extensions.extension_authorizer('compute', 'quotas:update')
-authorize_show = extensions.extension_authorizer('compute', 'quotas:show')
+authorize_update = extensions.extension_authorizer('volume', 'quotas:update')
+authorize_show = extensions.extension_authorizer('volume', 'quotas:show')
class QuotaTemplate(xmlutil.TemplateBuilder):
name = "Quotas"
alias = "os-quota-sets"
- namespace = "http://docs.openstack.org/compute/ext/quotas-sets/api/v1.1"
+ namespace = "http://docs.openstack.org/volume/ext/quotas-sets/api/v1.1"
updated = "2011-08-08T00:00:00+00:00"
def get_resources(self):
"volume_extension:volume_image_metadata": [],
"volume_extension:quotas:show": [],
- "volume_extension:quotas:update_for_project": [["rule:admin_api"]],
- "volume_extension:quotas:update_for_user": [["rule:admin_or_projectadmin"]],
+ "volume_extension:quotas:update": [["rule:admin_api"]],
"volume_extension:quota_classes": [],
"volume_extension:volume_admin_actions:reset_status": [["rule:admin_api"]],