Merge "Use LOG.warning instead of deprecated LOG.warn"
This commit is contained in:
commit
f886694e21
@ -262,7 +262,7 @@ def prepare_for_attempt(cloud, node, node_timeout, retry_timeout):
|
||||
node = cloud.baremetal.set_node_provision_state(
|
||||
node, 'abort', wait=True, timeout=node_timeout)
|
||||
except Exception as e:
|
||||
LOG.warn("Abort introspection of node %s failed: %s",
|
||||
LOG.warning("Abort introspection of node %s failed: %s",
|
||||
node.id, str(e))
|
||||
|
||||
if node.power_state != 'power off':
|
||||
@ -273,7 +273,7 @@ def prepare_for_attempt(cloud, node, node_timeout, retry_timeout):
|
||||
node, 'power off', wait=True, timeout=node_timeout
|
||||
)
|
||||
except Exception as e:
|
||||
LOG.warn("Power off of node %s failed: %s",
|
||||
LOG.warning("Power off of node %s failed: %s",
|
||||
node.id, str(e))
|
||||
|
||||
if node.reservation:
|
||||
@ -282,7 +282,7 @@ def prepare_for_attempt(cloud, node, node_timeout, retry_timeout):
|
||||
node = cloud.baremetal.wait_for_node_reservation(
|
||||
node, timeout=retry_timeout)
|
||||
except Exception as e:
|
||||
LOG.warn("Waiting for node unlock %s failed: %s",
|
||||
LOG.warning("Waiting for node unlock %s failed: %s",
|
||||
node.id, str(e))
|
||||
return node
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user