Skip to content

Commit

Permalink
Fix indentation for rule_results
Browse files Browse the repository at this point in the history
  • Loading branch information
weslambert committed Dec 6, 2023
1 parent 4becf3e commit 51fa492
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions salt/sensoroni/files/analyzers/sublime/sublime.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ def prepareResults(raw):
for r in raw["rule_results"]:
if r["matched"] is True:
matched.append(r)
if len(matched) > 0:
raw = matched
status = "threat"
summary = "malicious"
else:
raw = "No rules matched."
status = "ok"
summary = "harmless"
if len(matched) > 0:
raw = matched
status = "threat"
summary = "malicious"
else:
raw = "No rules matched."
status = "ok"
summary = "harmless"
elif "flagged_rules" in raw:
if raw["flagged_rules"] is not None:
status = "threat"
Expand Down

0 comments on commit 51fa492

Please sign in to comment.