]> 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)
committerSalvatore Orlando <salv.orlando@gmail.com>
Thu, 1 Oct 2015 23:07:59 +0000 (16:07 -0700)
commit809ac2161577ef354b75713c0d5210e03fa16d6a
treed44370c0448a76462a309a72a6eed0f70ad212ce
parentafabab7fd1344c873877beb6c4d2f9ea8a8eeb88
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
neutron/pecan_wsgi/hooks/quota_enforcement.py
neutron/pecan_wsgi/startup.py