Fixing skipped default override for CORS options

Some of the cores middleware options should have overridden default
values but the override method was not actually called so the library
defaults are still used.

Closes-Bug: #2051691
Change-Id: I8dac03c787bf729c60c2e0ecc9c03b7ba9a5b5a5
This commit is contained in:
Joshua Cornutt 2024-01-28 17:12:44 +01:00 committed by Takashi Kajinami
parent 5775bcef47
commit 5d48410d0a
3 changed files with 11 additions and 0 deletions

View File

@ -48,6 +48,7 @@ def main():
CONF(sys.argv[1:], project='manila',
version=version.version_string())
config.verify_share_protocols()
config.set_lib_defaults()
log.setup(CONF, "manila")
utils.monkey_patch()

View File

@ -35,6 +35,7 @@ def initialize_application():
gmr_opts.set_defaults(CONF)
CONF(sys.argv[1:], project="manila", version=version.version_string())
config.verify_share_protocols()
config.set_lib_defaults()
log.setup(CONF, "manila")
gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)

View File

@ -0,0 +1,9 @@
---
fixes:
- |
`bug 2051691 <https://bugs.launchpad.net/manila/+bug/2051691>`_: Fixed
the default values of the following options.
- ``[cors] allowed_headers``
- ``[cors] expose_headers``
- ``[cors] allow_methods``