Browse Source

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
changes/09/733509/1
Hervé Beraud 8 months ago
parent
commit
8db8fb30f5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tricircle/api/wsgi.py

+ 3
- 0
tricircle/api/wsgi.py View File

@ -47,6 +47,9 @@ def init_application():
# initialize the config system
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])
LOG.info("Configuration:")


Loading…
Cancel
Save