handle sockets with no cpu installed. should fix #117 #118

Merged
ThomasADavis merged 2 commits from one-cpu-dual-socket into master 2020-02-21 09:13:03 +01:00

View file

@ -103,6 +103,7 @@ class LSHW():
self.disks.append(d) self.disks.append(d)
def find_cpus(self, obj): def find_cpus(self, obj):
if "product" in obj:
c = {} c = {}
c["product"] = obj["product"] c["product"] = obj["product"]
c["vendor"] = obj["vendor"] c["vendor"] = obj["vendor"]