dom0/core: treat 'halting' VM still as running

This is especially important for qvm-shutdown --wait - to wait for VM
really shut down.
This commit is contained in:
Marek Marczykowski 2013-02-07 16:40:29 +01:00
parent 268cbfdc84
commit e14ce10da6

View File

@ -731,7 +731,7 @@ class QubesVm(object):
def is_running(self):
# in terms of Xen and internal logic - starting VM is running
if self.get_power_state() in ["Running", "Transient"]:
if self.get_power_state() in ["Running", "Transient", "Halting"]:
return True
else:
return False