Merge "placement: Always reset conf.CONF when starting the wsgi app"
This commit is contained in:
commit
ec3964179e
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue