mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fix indentation for rule_results
This commit is contained in:
@@ -39,14 +39,14 @@ def prepareResults(raw):
|
|||||||
for r in raw["rule_results"]:
|
for r in raw["rule_results"]:
|
||||||
if r["matched"] is True:
|
if r["matched"] is True:
|
||||||
matched.append(r)
|
matched.append(r)
|
||||||
if len(matched) > 0:
|
if len(matched) > 0:
|
||||||
raw = matched
|
raw = matched
|
||||||
status = "threat"
|
status = "threat"
|
||||||
summary = "malicious"
|
summary = "malicious"
|
||||||
else:
|
else:
|
||||||
raw = "No rules matched."
|
raw = "No rules matched."
|
||||||
status = "ok"
|
status = "ok"
|
||||||
summary = "harmless"
|
summary = "harmless"
|
||||||
elif "flagged_rules" in raw:
|
elif "flagged_rules" in raw:
|
||||||
if raw["flagged_rules"] is not None:
|
if raw["flagged_rules"] is not None:
|
||||||
status = "threat"
|
status = "threat"
|
||||||
|
|||||||
Reference in New Issue
Block a user