Fix indentation for rule_results

This commit is contained in:
Wes
2023-12-06 17:37:07 +00:00
parent 4becf3e20f
commit 51fa4922b9

View File

@@ -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"