Skip to content

Commit 9e279b9

Browse files
Mikaayensongithub-actions[bot]
authored andcommitted
only add related_integration if on the correct stack (#2234)
(cherry picked from commit 89cdae8)
1 parent 4b40916 commit 9e279b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detection_rules/rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def _add_related_integrations(self, obj: dict) -> None:
714714
if package["integration"] not in policy_templates:
715715
del package["integration"]
716716

717-
obj.setdefault("related_integrations", package_integrations)
717+
obj.setdefault("related_integrations", package_integrations)
718718

719719
def _add_required_fields(self, obj: dict) -> None:
720720
"""Add restricted field required_fields to the obj, derived from the query AST."""

0 commit comments

Comments
 (0)