]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Remove plural param to QUOTAS.count
authorKevin Benton <blak111@gmail.com>
Tue, 15 Sep 2015 17:24:19 +0000 (10:24 -0700)
committerKevin Benton <blak111@gmail.com>
Tue, 15 Sep 2015 22:31:52 +0000 (15:31 -0700)
This parameter is no longer in the signature of the count function.

Change-Id: I686f3e3ed1095fdb48dd0515b58b159594f64f9e

neutron/pecan_wsgi/hooks/quota_enforcement.py

index 1a9240329f64a41f29451438ac9ffe9512a2874b..a45e5cccde9f1dcc55ad1450451c486516fa7a2f 100644 (file)
@@ -14,7 +14,6 @@
 #    under the License.
 
 from neutron.common import exceptions
-from neutron.pecan_wsgi.hooks import attribute_population
 from neutron import quota
 
 from oslo_log import log as logging
@@ -38,7 +37,6 @@ class QuotaEnforcementHook(hooks.PecanHook):
             try:
                 count = quota.QUOTAS.count(state.request.context, rtype,
                                            state.request.plugin,
-                                           attribute_population._plural(rtype),
                                            tenant_id)
                 delta = deltas.get(tenant_id, 0) + 1
                 kwargs = {rtype: count + delta}