handle sockets with no cpu installed. should fix #117 #118
1 changed files with 7 additions and 6 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue