'Wait for the node to complete a power state change.'

def _wait_for_power_state(self, instance, message):

    node = self._validate_instance_and_node(instance)
    if (node.target_power_state == ironic_states.NOSTATE):
        raise loopingcall.LoopingCallDone()
    _log_ironic_polling(message, node, instance)
