Skip to content

Commit

Permalink
Suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aiden3c committed Sep 24, 2024
1 parent 2196103 commit 6b21631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/smart.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def parse_smart_selftest_results(data) -> list[dict[str, Any]] | None:
if "scsi_self_test_0" in data: # 0 is most recent test
for index in range(0, 20): # only 20 tests can ever return
test_key = f"scsi_self_test_{index}"
if not test_key in data:
if test_key not in data:
break
entry = data[test_key]

Expand Down

0 comments on commit 6b21631

Please sign in to comment.