Remove the deprecated config "quota_items"
It was deprecated at [1], and quota of resource will be registered at initialization of APIRouter. So, no need to use the config now. [1] https://review.openstack.org/#/c/181593 DocImpact: All references of 'quota_items' configuration option and its description should be removed from the docs. UpgradeImpact: Remove 'quota_items' configuration option from neutron.conf file. Change-Id: I0698772a49f51d7c65f1f4cf1ea7660cd07113a0 Closes-Bug: #1593772
This commit is contained in:
@@ -34,7 +34,6 @@ LOG = logging.getLogger(__name__)
|
||||
QUOTA_DB_MODULE = quota.QUOTA_DB_MODULE
|
||||
QUOTA_DB_DRIVER = quota.QUOTA_DB_DRIVER
|
||||
QUOTA_CONF_DRIVER = quota.QUOTA_CONF_DRIVER
|
||||
default_quota_items = quota.default_quota_items
|
||||
|
||||
|
||||
# Register the configuration options
|
||||
@@ -280,15 +279,3 @@ class QuotaEngine(object):
|
||||
|
||||
|
||||
QUOTAS = QuotaEngine.get_instance()
|
||||
|
||||
|
||||
def register_resources_from_config():
|
||||
# This operation is now deprecated. All the neutron core and extended
|
||||
# resource for which quota limits are enforced explicitly register
|
||||
# themselves with the quota engine.
|
||||
for resource_item in (set(cfg.CONF.QUOTAS.quota_items) -
|
||||
set(default_quota_items)):
|
||||
resource_registry.register_resource_by_name(resource_item)
|
||||
|
||||
|
||||
register_resources_from_config()
|
||||
|
||||
Reference in New Issue
Block a user