summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslo_middleware/cors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/oslo_middleware/cors.py b/oslo_middleware/cors.py
index 8e8422d..9da5d24 100644
--- a/oslo_middleware/cors.py
+++ b/oslo_middleware/cors.py
@@ -225,8 +225,8 @@ class CORS(base.ConfigurableMiddleware):
# a string for allowed_origin instead of a list
if isinstance(allowed_origin, six.string_types):
# TODO(krotscheck): https://review.openstack.org/#/c/312687/
- LOG.warn('DEPRECATED: The `allowed_origin` keyword argument in '
- '`add_origin()` should be a list, found String.')
+ LOG.warning('DEPRECATED: The `allowed_origin` keyword argument in '
+ '`add_origin()` should be a list, found String.')
allowed_origin = [allowed_origin]
if allowed_origin: