handle sockets with no cpu installed.

This commit is contained in:
Thomas Davis 2020-02-20 06:46:46 -08:00
parent a5bc16d3b1
commit 4ebfc34379

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: