Skip to content

Commit

Permalink
core: typo fix in error handling cont
Browse files Browse the repository at this point in the history
s/VIR_INTERNAL_ERROR/VIR_ERR_INTERNAL_ERROR/

Related to QubesOS/qubes-issues#1537

(cherry picked from commit 1e411eb)
  • Loading branch information
marmarek committed Feb 27, 2016
1 parent 23c4d32 commit 23bf2fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core-modules/000QubesVm.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def get_cputime(self):
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
Expand Down Expand Up @@ -920,7 +920,7 @@ def is_running(self):
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
Expand All @@ -939,7 +939,7 @@ def is_paused(self):
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
Expand Down

0 comments on commit 23bf2fa

Please sign in to comment.