fix get sanitize

This commit is contained in:
Cayo Puigdefabregas 2023-07-26 16:33:23 +02:00
parent 765927cfd1
commit 9586873fa4

View file

@ -26,7 +26,7 @@ class ParseSnapshot:
self.hwinfo_raw = snapshot["hwmd"]["hwinfo"]
self.lshw_raw = snapshot["hwmd"]["lshw"]
self.lscpi_raw = snapshot["hwmd"]["lspci"]
self.sanitize_raw = snapshot["sanitize"]
self.sanitize_raw = snapshot.get("sanitize", [])
self.device = {"actions": []}
self.components = []
self.monitors = []
@ -725,7 +725,6 @@ class ParseSnapshotLsHw:
return dmi_uuid
def get_data_storage(self):
for sm in self.smart:
if sm.get('smartctl', {}).get('exit_status') == 1:
continue