Skip to content

Commit

Permalink
Merge pull request #11954 from Security-Onion-Solutions/fix/sublime_a…
Browse files Browse the repository at this point in the history
…nalyzer_indentation

Fix indentation for rule_results
  • Loading branch information
weslambert authored Dec 6, 2023
2 parents 4becf3e + 51fa492 commit 1438913
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 1438913

Please sign in to comment.