original_docstring: Called at an interval until the node's power is off.
docstring: Called at an interval until the node's power is off.
docstring_tokens: Called at an interval until the node ' s power is off .
code: def _wait_for_power_off():
              """Called at an interval until the node's power is off."""
  
              if self._is_power("off"):
                  self.state = baremetal_states.DELETED
                  raise utils.LoopingCallDone()
              if self.retries > CONF.baremetal.ipmi_power_retry:
                  self.state = baremetal_states.ERROR
                  raise utils.LoopingCallDone()
              try:
                  self.retries += 1
                  self._exec_ipmitool("power off")
              except Exception:
                  LOG.exception(_("IPMI power off failed"))
code_tokens: def _wait_for_power_off ( ) : if self . _is_power ( "off" ) : self . state = baremetal_states . DELETED raise utils . LoopingCallDone ( ) if self . retries > CONF . baremetal . ipmi_power_retry : self . state = baremetal_states . ERROR raise utils . LoopingCallDone ( ) try : self . retries += 1 self . _exec_ipmitool ( "power off" ) except Exception : LOG . exception ( _ ( "IPMI power off failed" ) )
short_docstring: Called at an interval until the node's power is off.
short_docstring_tokens: Called at an interval until the node ' s power is off .
comment: """Called at an interval until the node's power is off."""