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