From bc7d39a99405ef1d65510e80aead370cec10e87c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 31 Dec 2010 14:24:23 +0100 Subject: [PATCH] Fix for VMWare hypervisor detection (crashed on Alix). --- fireinfo/hypervisor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fireinfo/hypervisor.py b/fireinfo/hypervisor.py index 10612d5..ebd8d4b 100644 --- a/fireinfo/hypervisor.py +++ b/fireinfo/hypervisor.py @@ -111,8 +111,9 @@ class Hypervisor(object): http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 """ - return self.system.bios_vendor.startswith("VMWare-") and \ - _fireinfo.vmware_hypervisor_port_check() + if self.system.bios_vendor: + return self.system.bios_vendor.startswith("VMWare-") and \ + _fireinfo.vmware_hypervisor_port_check() def __is_hypervisor_qemu(self): """ -- 2.39.2