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,13 +103,14 @@ class LSHW():
self.disks.append(d)
def find_cpus(self, obj):
c = {}
c["product"] = obj["product"]
c["vendor"] = obj["vendor"]
c["description"] = obj["description"]
c["location"] = obj["slot"]
if "product" in obj:
c = {}
c["product"] = obj["product"]
c["vendor"] = obj["vendor"]
c["description"] = obj["description"]
c["location"] = obj["slot"]
self.cpus.append(c)
self.cpus.append(c)
def find_memories(self, obj):
if "children" not in obj: