fix uuid
This commit is contained in:
parent
7f0184f049
commit
bf77934fdb
|
@ -435,7 +435,10 @@ class ParseSnapshotLsHw:
|
|||
return 'SODIMM' if 'SODIMM' in channel else 'DIMM'
|
||||
|
||||
def get_uuid(self):
|
||||
dmi_uuid = 'undefined'
|
||||
if self.dmi.get("System"):
|
||||
dmi_uuid = self.dmi.get("System")[0].get("UUID")
|
||||
|
||||
try:
|
||||
uuid.UUID(dmi_uuid)
|
||||
except (ValueError, AttributeError) as err:
|
||||
|
|
Reference in New Issue