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: I7e4f230b5e824d4aa072a2a18d0989e670eda77a
This commit is contained in:
parent
6fc9861ac7
commit
8db8fb30f5
|
@ -47,6 +47,9 @@ def init_application():
|
||||||
|
|
||||||
# initialize the config system
|
# initialize the config system
|
||||||
conf_file = _get_config_file()
|
conf_file = _get_config_file()
|
||||||
|
# NOTE(hberaud): Call reset to ensure the ConfigOpts object doesn't
|
||||||
|
# already contain registered options if the app is reloaded.
|
||||||
|
CONF.reset()
|
||||||
config.init(app.common_opts, ['--config-file', conf_file])
|
config.init(app.common_opts, ['--config-file', conf_file])
|
||||||
|
|
||||||
LOG.info("Configuration:")
|
LOG.info("Configuration:")
|
||||||
|
|
Loading…
Reference in New Issue