core: typo fix in error handling cont
s/VIR_INTERNAL_ERROR/VIR_ERR_INTERNAL_ERROR/ Related to QubesOS/qubes-issues#1537 Fixes QubesOS/qubes-issues#1804
This commit is contained in:
parent
3bef37f881
commit
280a0743c2
@ -807,7 +807,7 @@ class QubesVm(object):
|
|||||||
if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN:
|
if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN:
|
||||||
return 0
|
return 0
|
||||||
# libxl_domain_info failed - domain no longer exists
|
# 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
|
return 0
|
||||||
elif e.get_error_code() is None: # unknown...
|
elif e.get_error_code() is None: # unknown...
|
||||||
return 0
|
return 0
|
||||||
@ -932,7 +932,7 @@ class QubesVm(object):
|
|||||||
if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN:
|
if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN:
|
||||||
return False
|
return False
|
||||||
# libxl_domain_info failed - domain no longer exists
|
# 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
|
return False
|
||||||
elif e.get_error_code() is None: # unknown...
|
elif e.get_error_code() is None: # unknown...
|
||||||
return False
|
return False
|
||||||
@ -951,7 +951,7 @@ class QubesVm(object):
|
|||||||
if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN:
|
if e.get_error_code() == libvirt.VIR_ERR_NO_DOMAIN:
|
||||||
return False
|
return False
|
||||||
# libxl_domain_info failed - domain no longer exists
|
# 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
|
return False
|
||||||
elif e.get_error_code() is None: # unknown...
|
elif e.get_error_code() is None: # unknown...
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user