]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Pecan: Fix quota enforcement
authorSalvatore Orlando <salv.orlando@gmail.com>
Thu, 1 Oct 2015 23:07:59 +0000 (16:07 -0700)
committerKyle Mestery <mestery@mestery.com>
Fri, 2 Oct 2015 15:58:05 +0000 (15:58 +0000)
commitd1d5f2a3bc11fbaa61dcbcce7de2be03b88dd606
treef8c20ee8eeee2968ef1c2b792eb59ec84c79534d
parentfa2b18c45ae0e7aefa0a0b454c5b7b4e9a05f63a
Pecan: Fix quota enforcement

Ensure that core resources, and not only extension resources,
are registered with the quota engine. Otherwise no enforcement
will happen for them.

Further, do not pass anymore the 'resource name' to the resource's
count method as it is not necessary anymore since Liberty.

Change-Id: I895b4e69e50dbf1aac39e07eba07c3e3ff30808a
Closes-bug: #1501948
(cherry picked from commit 809ac2161577ef354b75713c0d5210e03fa16d6a)
neutron/pecan_wsgi/hooks/quota_enforcement.py
neutron/pecan_wsgi/startup.py