From: Michael Tremer Date: Fri, 31 Dec 2010 15:03:37 +0000 (+0100) Subject: Rely on the system vendor when searching for VMWare hypervisor. X-Git-Tag: v2.0.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95efe20bebd7539124aadf915e172f66d06d4241;p=oddments%2Ffireinfo.git Rely on the system vendor when searching for VMWare hypervisor. --- diff --git a/fireinfo/hypervisor.py b/fireinfo/hypervisor.py index ebd8d4b..a36b39f 100644 --- a/fireinfo/hypervisor.py +++ b/fireinfo/hypervisor.py @@ -111,8 +111,8 @@ class Hypervisor(object): http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 """ - if self.system.bios_vendor: - return self.system.bios_vendor.startswith("VMWare-") and \ + if self.system.vendor: + return self.system.vendor.startswith("VMware") and \ _fireinfo.vmware_hypervisor_port_check() def __is_hypervisor_qemu(self):