Merge "Python 3 deprecated the logger.warn method in favor of warning"

This commit is contained in:
Jenkins 2015-12-31 07:45:06 +00:00 committed by Gerrit Code Review
commit 91a655105f
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ def validate_source(data):
if not exists:
if data.get('optional'):
LOG.warn("%s does not exist, but is not required", source)
LOG.warning("%s does not exist, but is not required", source)
return False
else:
LOG.error("The source to copy does not exist: %s", source)

View File

@ -37,7 +37,7 @@ class OpenStackClients(object):
return connected_client
except StopIteration:
LOG.warn("Requested client %s not found", name)
LOG.warning("Requested client %s not found", name)
raise
def create(self):