Merge "placement: Always reset conf.CONF when starting the wsgi app"

This commit is contained in:
Zuul 2018-09-26 16:58:52 +00:00 committed by Gerrit Code Review
commit ec3964179e
1 changed files with 5 additions and 0 deletions

View File

@ -99,6 +99,11 @@ def _set_middleware_defaults():
def init_application():
# initialize the config system
conffile = _get_config_file()
# NOTE(lyarwood): Call reset to ensure the ConfigOpts object doesn't
# already contain registered options if the app is reloaded.
conf.CONF.reset()
_parse_args([], default_config_files=[conffile])
db_api.configure(conf.CONF)