Always reset CONF when starting the wsgi app

This ensures that options loaded during any prior run of the
application are dropped before being added again during init_application.

Change-Id: I4267071cdfcb6319ed02e355a9c761fce58e5383
This commit is contained in:
Hervé Beraud 2020-06-04 11:31:20 +02:00
parent ea0aa97f21
commit aef32ef246
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ def fail(e):
def configure_wsgi():
# NOTE(hberaud): Call reset to ensure the ConfigOpts object doesn't
# already contain registered options if the app is reloaded.
CONF.reset()
config.parse_args()
config.set_config_defaults()
logging.setup(CONF, 'searchlight')