Merge "Python 3 deprecated the logger.warn method in favor of warning"
This commit is contained in:
commit
91a655105f
@ -57,7 +57,7 @@ def validate_source(data):
|
|||||||
|
|
||||||
if not exists:
|
if not exists:
|
||||||
if data.get('optional'):
|
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
|
return False
|
||||||
else:
|
else:
|
||||||
LOG.error("The source to copy does not exist: %s", source)
|
LOG.error("The source to copy does not exist: %s", source)
|
||||||
|
@ -37,7 +37,7 @@ class OpenStackClients(object):
|
|||||||
return connected_client
|
return connected_client
|
||||||
|
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
LOG.warn("Requested client %s not found", name)
|
LOG.warning("Requested client %s not found", name)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
def create(self):
|
def create(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user