]> git.ipfire.org Git - oddments/fireinfo.git/commitdiff
Fix for VMWare hypervisor detection (crashed on Alix).
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 Dec 2010 13:24:23 +0000 (14:24 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 31 Dec 2010 13:24:23 +0000 (14:24 +0100)
fireinfo/hypervisor.py

index 10612d569d90bea80561f9057189fd76756ee0fd..ebd8d4b651b4a3f44645c3e2430929eaaf1bd983 100644 (file)
@@ -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):
                """