Moved CORS middleware configuration into oslo-config-generator

The default values needed for sahara's implementation of cors
middleware have been moved from paste.ini into the configuration
hooks provided by oslo.config. Furthermore, these values have been
added to the default initialization procedure. This ensures
that if a value remains unset in the configuration file, it will
fallback to using sane defaults. It also ensures that an operator
modifying the configuration will be presented with that same
set of defaults.

Change-Id: Iedcaa002ff3d40cf61168769bc3946f8c6e42b87
Closes-Bug: 1551836
This commit is contained in:
Michael Krotscheck 2016-03-02 10:26:32 -08:00
parent 023341f861
commit 11a970511a
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ sahara.run.mode =
oslo.config.opts =
sahara.config = sahara.config:list_opts
oslo.config.opts.defaults =
oslo.middleware.cors = sahara.common.config:set_cors_middleware_defaults
tempest.test_plugins =
sahara_clients_scenario_tests = sahara.tests.tempest.scenario.data_processing.plugin:SaharaClientsScenarioPlugin