diff --git a/core-modules/000QubesVm.py b/core-modules/000QubesVm.py index 0a777c32..f1c44024 100644 --- a/core-modules/000QubesVm.py +++ b/core-modules/000QubesVm.py @@ -807,7 +807,7 @@ class QubesVm(object): if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN: return 0 # libxl_domain_info failed - domain no longer exists - elif e.get_error_code() == libvirt.VIR_INTERNAL_ERROR: + elif e.get_error_code() == libvirt.VIR_ERR_INTERNAL_ERROR: return 0 elif e.get_error_code() is None: # unknown... return 0 @@ -932,7 +932,7 @@ class QubesVm(object): if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN: return False # libxl_domain_info failed - domain no longer exists - elif e.get_error_code() == libvirt.VIR_INTERNAL_ERROR: + elif e.get_error_code() == libvirt.VIR_ERR_INTERNAL_ERROR: return False elif e.get_error_code() is None: # unknown... return False @@ -951,7 +951,7 @@ class QubesVm(object): if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN: return False # libxl_domain_info failed - domain no longer exists - elif e.get_error_code() == libvirt.VIR_INTERNAL_ERROR: + elif e.get_error_code() == libvirt.VIR_ERR_INTERNAL_ERROR: return False elif e.get_error_code() is None: # unknown... return False