summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-10-12 15:24:27 +0000
committerGerrit Code Review <review@openstack.org>2018-10-12 15:24:27 +0000
commit1282dc08bf45563664932af15bad215357d16965 (patch)
treeb36a86a977b94b0592abd737d161ba1c5f083363
parent5bfba3852d9b7573193c7dfe26a4d1991bfbee46 (diff)
parentda40b42bc4b20b1cb1e1b1865b0c203bb932a792 (diff)
Merge "Use set_defaults from cors"
-rw-r--r--ironic_inspector/conf/opts.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ironic_inspector/conf/opts.py b/ironic_inspector/conf/opts.py
index d480f1a..69312a9 100644
--- a/ironic_inspector/conf/opts.py
+++ b/ironic_inspector/conf/opts.py
@@ -39,9 +39,7 @@ def set_config_defaults():
39 39
40def set_cors_middleware_defaults(): 40def set_cors_middleware_defaults():
41 """Update default configuration options for oslo.middleware.""" 41 """Update default configuration options for oslo.middleware."""
42 # TODO(krotscheck): Update with https://review.openstack.org/#/c/285368/ 42 cors.set_defaults(
43 cfg.set_defaults(
44 cors.CORS_OPTS,
45 allow_headers=['X-Auth-Token', 43 allow_headers=['X-Auth-Token',
46 MIN_VERSION_HEADER, 44 MIN_VERSION_HEADER,
47 MAX_VERSION_HEADER, 45 MAX_VERSION_HEADER,