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: I599b4b301d1eb8c5824f378dfd7fdcf8145d11aa
This commit is contained in:
parent
eef6ddd62d
commit
b92dadb1b1
@ -31,6 +31,9 @@ from cyborg.common import service
|
||||
|
||||
def init_application():
|
||||
CONF = cfg.CONF
|
||||
# NOTE(hberaud): Call reset to ensure the ConfigOpts object doesn't
|
||||
# already contain registered options if the app is reloaded.
|
||||
CONF.reset()
|
||||
|
||||
i18n.install('cyborg')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user