Improved quota error message

Removed two negatives and showed a clear message when
tried to see quota of different tenants.
When a user who does not belong to a project tries to access the
quota of that project, the message that gets displayed is not clear.
In this change the user would understand the error more properly.

Change-Id: I2284df07687bb530fe06fbaab38e2971826b7b40
Closes-Bug: #1288915
This commit is contained in:
Shweta Patil 2014-03-13 11:48:58 -07:00
parent 1867207470
commit 13fd601415
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class QuotaSetsController(wsgi.Controller):
def show(self, request, id):
if id != request.context.tenant_id:
self._check_admin(request.context,
reason=_("Non-admin is not authorised "
reason=_("Only admin is authorized "
"to access quotas for another tenant"))
return {self._resource_name: self._get_quotas(request, id)}