Merge "Use default cors config also when run as wsgi app"

This commit is contained in:
Zuul 2020-02-19 13:58:43 +00:00 committed by Gerrit Code Review
commit 2456c7d000
2 changed files with 7 additions and 0 deletions

View File

@ -65,6 +65,7 @@ def _setup_os_profiler():
def init_app():
config.set_config_defaults()
config_files = _get_config_files()
CONF([], project='glance', default_config_files=config_files)
logging.setup(CONF, "glance")

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Bug 1861334_: cors config defaults not used when Glance is run as WSGI app
.. _1861334: https://bugs.launchpad.net/glance/+bug/1861334