diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 5ee8b430..d6f58bfc 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -2159,7 +2159,7 @@ class QubesHVm(QubesVm): @property def stubdom_xid(self): - if not self.is_running(): + if self.xid < 0: return -1 return int(xs.read('', '/local/domain/%d/image/device-model-domid' % self.xid))