def _wait_for_reboot():
    'Called at an interval until the VM is running again.'
    state = self.get_info(instance)['state']
    if (state == power_state.RUNNING):
        LOG.info(_LI('Instance rebooted successfully.'), instance=instance)
        raise loopingcall.LoopingCallDone()
Called at an interval until the VM is running again.
def _wait_for_reboot():
    
    state = self.get_info(instance)['state']
    if (state == power_state.RUNNING):
        LOG.info(_LI('Instance rebooted successfully.'), instance=instance)
        raise loopingcall.LoopingCallDone()