[node-patches] Change in ovirt-node[master]: utils: Fix virt state detection
fabiand at redhat.com
fabiand at redhat.com
Thu Aug 7 13:02:38 UTC 2014
Fabian Deutsch has uploaded a new change for review.
Change subject: utils: Fix virt state detection
......................................................................
utils: Fix virt state detection
Change-Id: I24ca3d7b2013ae9ff312c4d5c2107eaf7f931de0
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1127648
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/utils/virt.py
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/05/31205/1
diff --git a/src/ovirt/node/utils/virt.py b/src/ovirt/node/utils/virt.py
index 9d53545..3c8b3f9 100644
--- a/src/ovirt/node/utils/virt.py
+++ b/src/ovirt/node/utils/virt.py
@@ -76,13 +76,16 @@
Status of hardware virtualization support on this machine as a human
read-able string
"""
+ msg = "No virtualization hardware was detected on this system"
+
if hardware_is_enabled():
msg = "Virtualization hardware was detected and is enabled"
if hardware_is_available():
msg = "Virtualization hardware was detected but is disabled"
- msg = "No virtualization hardware was detected on this system"
+
if not is_libvirtd_reachable():
msg += "\n(Failed to Establish Libvirt Connection)"
+
return msg
--
To view, visit http://gerrit.ovirt.org/31205
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I24ca3d7b2013ae9ff312c4d5c2107eaf7f931de0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
More information about the node-patches
mailing list