def _wait_for_instance_to_start(self, instance, vm_ref):
        LOG.debug('Waiting for instance state to become running',
                  instance=instance)
        expiration = time.time() + CONF.xenserver.running_timeout
        while expiration < time.time():
            state = vm_utils.get_power_state(self._session, vm_ref)
            if state == power_state.RUNNING:
                break
            greenthread.sleep(0.5)
dataset/ETHPy150Open openstack/nova/nova/virt/xenapi/vmops.py/VMOps._wait_for_instance_to_start/swapped operands of `<`