[node-patches] Change in ovirt-node[master]: fix detection of hardware virt enabled in cpu details

mburns at redhat.com mburns at redhat.com
Fri Dec 14 16:25:47 UTC 2012


Michael Burns has uploaded a new change for review.

Change subject: fix detection of hardware virt enabled in cpu details
......................................................................

fix detection of hardware virt enabled in cpu details

It was previously reporting "Yes" even if the host had
hardware virt extensions disabled.

rhbz#887149

Change-Id: I8318ba25153b233bc566b44b6744d7eb0eadaa13
Signed-off-by: Mike Burns <mburns at redhat.com>
---
M scripts/ovirtnode/ovirtfunctions.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/66/10066/1

diff --git a/scripts/ovirtnode/ovirtfunctions.py b/scripts/ovirtnode/ovirtfunctions.py
index 0274330..b5cd75b 100644
--- a/scripts/ovirtnode/ovirtfunctions.py
+++ b/scripts/ovirtnode/ovirtfunctions.py
@@ -1389,7 +1389,7 @@
     cpu_topology = topologyTag.replace('<topology>','').replace('</topology>','').split()
     status_msg += "CPU Name: %s\n" % cpu_dict["model name"].replace("  "," ")
     status_msg += "CPU Type: %s %s\n" % (cpu_vendor, cpu_model)
-    if kvm_enabled() and virt_cpu_flags_enabled():
+    if kvm_enabled() == 1 and virt_cpu_flags_enabled():
         status_msg += "Virtualization Extensions Enabled: Yes\n"
     else:
         status_msg += "Virtualization Extensions Enabled: \n%s\n" \


--
To view, visit http://gerrit.ovirt.org/10066
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8318ba25153b233bc566b44b6744d7eb0eadaa13
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Michael Burns <mburns at redhat.com>



More information about the node-patches mailing list