summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaifeng Wang <kaifeng.w@gmail.com>2018-09-13 15:39:06 +0800
committerKaifeng Wang <kaifeng.w@gmail.com>2018-09-13 15:39:06 +0800
commitda40b42bc4b20b1cb1e1b1865b0c203bb932a792 (patch)
tree3b2bb14e8d21282645f5511eef2ed38b5fc70447
parent34b150340cbb1650e7195b4496a9c74150e68db8 (diff)
Use set_defaults from cors
cors provides set_defaults method about 2.5 year ago [1], let's call it a long debt gets paid. [1] https://review.openstack.org/#/c/285368 Change-Id: I566eb874d401772255b45e36135592bd736528e5
Notes
Notes (review): Code-Review+2: Dmitry Tantsur <divius.inside@gmail.com> Code-Review+2: Ruby Loo <opensrloo@gmail.com> Workflow+1: Ruby Loo <opensrloo@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 12 Oct 2018 15:24:27 +0000 Reviewed-on: https://review.openstack.org/602257 Project: openstack/ironic-inspector Branch: refs/heads/master
-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,