From 89cdae87c5b2656d39a2e0db1757480da107fe22 Mon Sep 17 00:00:00 2001 From: Mika Ayenson Date: Mon, 8 Aug 2022 18:41:56 -0400 Subject: [PATCH] only add related_integration if on the correct stack (#2234) --- detection_rules/rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detection_rules/rule.py b/detection_rules/rule.py index 4c3b01606..0d1d844d8 100644 --- a/detection_rules/rule.py +++ b/detection_rules/rule.py @@ -714,7 +714,7 @@ class TOMLRuleContents(BaseRuleContents, MarshmallowDataclassMixin): if package["integration"] not in policy_templates: del package["integration"] - obj.setdefault("related_integrations", package_integrations) + obj.setdefault("related_integrations", package_integrations) def _add_required_fields(self, obj: dict) -> None: """Add restricted field required_fields to the obj, derived from the query AST."""