summaryrefslogtreecommitdiff
path: root/oslo_middleware
diff options
context:
space:
mode:
authorSamuel de Medeiros Queiroz <samueldmq@gmail.com>2017-06-19 16:54:58 -0400
committerSamuel de Medeiros Queiroz <samueldmq@gmail.com>2017-06-19 17:52:45 -0400
commitbc7d4b8be81d7b504b5c77ad212222f6d9bfea2c (patch)
tree7ffcd9d95254e941024ad7ad5dfc17890965eb92 /oslo_middleware
parent3d6505374192840b23ff6e955a4519ba99daa677 (diff)
downloadoslo-middleware-bc7d4b8be81d7b504b5c77ad212222f6d9bfea2c.tar.gz
Remove deprecated oslo.subdomain from CORS opts
Defining configuration under cors.* blocks is deprecated. However, we advertise [cors.subdomain] as a CORS section, and still throw a warning if that section (that we list) is used in config files. This was causing warnings in the keystone unit tests output, since the generated config file does contain both of those listed sections [2]. [1] https://github.com/openstack/oslo.middleware/blob/master/oslo_middleware/cors.py#L200-L205 [2] https://github.com/openstack/keystone/blob/master/etc/keystone.conf.sample#L587-L616 Change-Id: Ice114bf1fdceda7bf122f5fd6b98fc88a85c8ff3
Diffstat (limited to 'oslo_middleware')
-rw-r--r--oslo_middleware/opts.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/oslo_middleware/opts.py b/oslo_middleware/opts.py
index 1584f9b..6cf6f4d 100644
--- a/oslo_middleware/opts.py
+++ b/oslo_middleware/opts.py
@@ -132,7 +132,6 @@ def list_opts_cors():
"""
return [
('cors', copy.deepcopy(cors.CORS_OPTS)),
- ('cors.subdomain', copy.deepcopy(cors.CORS_OPTS))
]