diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-01-12 09:12:54 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-01-12 09:12:54 +0000 |
commit | 542ae6294f4916d8f8691a7400cf7bfeb41fa9f0 (patch) | |
tree | c61520809a33d90e26011039353b8c69b9cbcbe5 | |
parent | e034ced622b9a6b1ba49fb58a76ee711dc6787e4 (diff) | |
parent | 2d88515affe08b131a98f1e75d09634f3917b2df (diff) | |
download | django_openstack_auth-542ae6294f4916d8f8691a7400cf7bfeb41fa9f0.tar.gz |
Merge "Python 3 deprecated the logger.warn method in favor of warning"
-rw-r--r-- | openstack_auth/backend.py | 6 | ||||
-rw-r--r-- | openstack_auth/policy.py | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/openstack_auth/backend.py b/openstack_auth/backend.py index 194b0b7..2d364a4 100644 --- a/openstack_auth/backend.py +++ b/openstack_auth/backend.py @@ -100,9 +100,9 @@ class KeystoneBackend(object): else: msg = _('No authentication backend could be determined to ' 'handle the provided credentials.') - LOG.warn('No authentication backend could be determined to ' - 'handle the provided credentials. This is likely a ' - 'configuration error that should be addressed.') + LOG.warning('No authentication backend could be determined to ' + 'handle the provided credentials. This is likely a ' + 'configuration error that should be addressed.') raise exceptions.KeystoneAuthException(msg) session = utils.get_session() diff --git a/openstack_auth/policy.py b/openstack_auth/policy.py index 5461b22..701e037 100644 --- a/openstack_auth/policy.py +++ b/openstack_auth/policy.py @@ -58,8 +58,8 @@ def _get_enforcer(): LOG.debug("adding enforcer for service: %s" % service) _ENFORCER[service] = enforcer else: - LOG.warn("policy file for service: %s not found at %s" % - (service, enforcer.policy_path)) + LOG.warning("policy file for service: %s not found at %s" % + (service, enforcer.policy_path)) return _ENFORCER |