From bc7d4b8be81d7b504b5c77ad212222f6d9bfea2c Mon Sep 17 00:00:00 2001 From: Samuel de Medeiros Queiroz Date: Mon, 19 Jun 2017 16:54:58 -0400 Subject: 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 --- oslo_middleware/opts.py | 1 - 1 file changed, 1 deletion(-) 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)) ] -- cgit v1.2.1