Browse Source

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
Kaifeng Wang 7 months ago
parent
commit
da40b42bc4
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      ironic_inspector/conf/opts.py

+ 1
- 3
ironic_inspector/conf/opts.py View File

@@ -39,9 +39,7 @@ def set_config_defaults():
39 39
 
40 40
 def set_cors_middleware_defaults():
41 41
     """Update default configuration options for oslo.middleware."""
42
-    # TODO(krotscheck): Update with https://review.openstack.org/#/c/285368/
43
-    cfg.set_defaults(
44
-        cors.CORS_OPTS,
42
+    cors.set_defaults(
45 43
         allow_headers=['X-Auth-Token',
46 44
                        MIN_VERSION_HEADER,
47 45
                        MAX_VERSION_HEADER,

Loading…
Cancel
Save