fix: fallback on smart_status for critical bit

This commit is contained in:
2024-01-03 17:05:05 +01:00
parent 72e0210d26
commit 3df3ddb08e

View File

@@ -48,4 +48,7 @@ def normalize(smart):
ret[target_name] = value ret[target_name] = value
if ret["critical_warning"] == 0 and "smart_status" in smart:
ret["critical_warning"] = int(not smart["smart_status"]["passed"])
return ret return ret