Skip to content

Commit

Permalink
Fix for sct/code
Browse files Browse the repository at this point in the history
  • Loading branch information
aiden3c committed Sep 10, 2024
1 parent ca58c73 commit dc5091e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middlewared/middlewared/plugins/smart.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def parse_smart_selftest_results(data):
"failing_lba": lba,
"nsid": entry.get("nsid"),
"seg": entry.get("segment"),
"sct": entry.get("status_code_type"),
"code": entry.get("status_code"),
"sct": entry.get("status_code_type") or 0x0,
"code": entry.get("status_code") or 0x0,
}

if test["status_verbose"] == "Completed without error":
Expand Down

0 comments on commit dc5091e

Please sign in to comment.