From 992eabd6dcb2e2d1532f7ed75421da6b4e063dd2 Mon Sep 17 00:00:00 2001 From: Justin Ibarra Date: Fri, 18 Dec 2020 22:04:19 -0900 Subject: [PATCH] update incomplete bug fix from 736 for 7.11 -> 7.10 downgrade logic --- detection_rules/schemas/v7_11.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detection_rules/schemas/v7_11.py b/detection_rules/schemas/v7_11.py index 7ee85c95c..f0a5d51f1 100644 --- a/detection_rules/schemas/v7_11.py +++ b/detection_rules/schemas/v7_11.py @@ -38,7 +38,7 @@ class ApiSchema711(ApiSchema710): def downgrade(cls, target_cls, document, role=None): """Remove 7.11 additions from the rule.""" # ignore when this method is inherited by subclasses - if cls == ApiSchema711 and "threat" in document: + if cls in (ApiSchema711, ApiSchema711.versioned()) and "threat" in document: v711_threats = document.get("threat", []) v710_threats = []