From 13fd601415418407bb2d2f6bafffb470e5879df6 Mon Sep 17 00:00:00 2001 From: Shweta Patil Date: Thu, 13 Mar 2014 11:48:58 -0700 Subject: [PATCH] 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 --- neutron/extensions/quotasv2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/extensions/quotasv2.py b/neutron/extensions/quotasv2.py index 570009280..ea29884bc 100644 --- a/neutron/extensions/quotasv2.py +++ b/neutron/extensions/quotasv2.py @@ -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)} -- 2.45.2