fix get sanitize
This commit is contained in:
parent
765927cfd1
commit
9586873fa4
|
@ -26,7 +26,7 @@ class ParseSnapshot:
|
||||||
self.hwinfo_raw = snapshot["hwmd"]["hwinfo"]
|
self.hwinfo_raw = snapshot["hwmd"]["hwinfo"]
|
||||||
self.lshw_raw = snapshot["hwmd"]["lshw"]
|
self.lshw_raw = snapshot["hwmd"]["lshw"]
|
||||||
self.lscpi_raw = snapshot["hwmd"]["lspci"]
|
self.lscpi_raw = snapshot["hwmd"]["lspci"]
|
||||||
self.sanitize_raw = snapshot["sanitize"]
|
self.sanitize_raw = snapshot.get("sanitize", [])
|
||||||
self.device = {"actions": []}
|
self.device = {"actions": []}
|
||||||
self.components = []
|
self.components = []
|
||||||
self.monitors = []
|
self.monitors = []
|
||||||
|
@ -725,7 +725,6 @@ class ParseSnapshotLsHw:
|
||||||
return dmi_uuid
|
return dmi_uuid
|
||||||
|
|
||||||
def get_data_storage(self):
|
def get_data_storage(self):
|
||||||
|
|
||||||
for sm in self.smart:
|
for sm in self.smart:
|
||||||
if sm.get('smartctl', {}).get('exit_status') == 1:
|
if sm.get('smartctl', {}).get('exit_status') == 1:
|
||||||
continue
|
continue
|
||||||
|
|
Reference in New Issue