]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Improved quota error message
authorShweta Patil <shweta.patil@intel.com>
Thu, 13 Mar 2014 18:48:58 +0000 (11:48 -0700)
committerShweta Patil <shweta.patil@intel.com>
Tue, 15 Apr 2014 18:16:30 +0000 (11:16 -0700)
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

index 570009280925f2cdbe6b1208d53131a32ca98ffb..ea29884bcf0d64ccaba35fdd3307ad50f9a65203 100644 (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)}