Fix missing print format error
Missing print format will cause 'ValueError: unsupported format character' error, this is to fix it. Change-Id: I83bb1c093b6ce20c901554bba6b1913785bc1c0f
This commit is contained in:
parent
15c31b9023
commit
7e6ce7e78c
|
@ -93,9 +93,10 @@ def node_wait_for_power_state(task, new_state, timeout=None):
|
|||
timer = loopingcall.BackOffLoopingCall(_wait)
|
||||
return timer.start(initial_delay=1, timeout=retry_timeout).wait()
|
||||
except loopingcall.LoopingCallTimeOut:
|
||||
LOG.error('Timed out after %(retry_timeout) secs waiting for power '
|
||||
LOG.error('Timed out after %(retry_timeout)s secs waiting for power '
|
||||
'%(state)s on node %(node_id)s.',
|
||||
{'state': new_state, 'node_id': task.node.uuid})
|
||||
{'retry_timeout': retry_timeout,
|
||||
'state': new_state, 'node_id': task.node.uuid})
|
||||
raise exception.PowerStateFailure(pstate=new_state)
|
||||
|
||||
|
||||
|
|
|
@ -273,7 +273,7 @@ class HeartbeatMixin(object):
|
|||
# NOTE(pas-ha) immediately skip the rest if nothing to do
|
||||
if task.node.provision_state not in self.heartbeat_allowed_states:
|
||||
LOG.debug('Heartbeat from node %(node)s in unsupported '
|
||||
'provision state %(state), not taking any action.',
|
||||
'provision state %(state)s, not taking any action.',
|
||||
{'node': task.node.uuid,
|
||||
'state': task.node.provision_state})
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue