only add related_integration if on the correct stack (#2234)

This commit is contained in:
Mika Ayenson
2022-08-08 18:41:56 -04:00
committed by GitHub
parent 7d973a3b07
commit 89cdae87c5
+1 -1
View File
@@ -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."""