diff --git a/openstack_auth/backend.py b/openstack_auth/backend.py index d43e0bac..ed62256e 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 5461b22d..701e0374 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