Merge "Add Extensions to the v2 API"

This commit is contained in:
Jenkins
2014-06-27 03:07:33 +00:00
committed by Gerrit Code Review
13 changed files with 335 additions and 1 deletions

View File

@@ -313,6 +313,9 @@ class Service(service.Service):
target = {'tenant_id': tenant_id}
policy.check('get_quotas', context, target)
# This allows admins to get quota information correctly for all tenants
context.all_tenants = True
return self.quota.get_quotas(context, tenant_id)
def get_quota(self, context, tenant_id, resource):