def _wait_for_running(self, instance):
    state = self.get_info(instance)['state']
    if (state == power_state.RUNNING):
        LOG.info(_LI('Instance running successfully.'), instance=instance)
        raise loopingcall.LoopingCallDone()
def _wait_for_running(self, instance):
    state = self.get_info(instance)['state']
    if (state == power_state.RUNNING):
        LOG.info(_LI('Instance running successfully.'), instance=instance)
        raise loopingcall.LoopingCallDone()