From: Michael Tremer Date: Fri, 31 Dec 2010 13:24:23 +0000 (+0100) Subject: Fix for VMWare hypervisor detection (crashed on Alix). X-Git-Tag: v2.0.1~3 X-Git-Url: http://git.ipfire.org/?p=oddments%2Ffireinfo.git;a=commitdiff_plain;h=bc7d39a99405ef1d65510e80aead370cec10e87c Fix for VMWare hypervisor detection (crashed on Alix). --- 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): """