Fix formatting matched arguments

This commit is contained in:
2023-02-09 22:54:38 +00:00
parent f4273e4453
commit 2356c6bcd7
2 changed files with 28 additions and 4 deletions

View File

@@ -371,6 +371,8 @@ class ElasticsearchBackend(StorageBackend):
"""
Check the results of a scheduled query for aggregations.
"""
if rule_object.aggs is None:
return result_map
for index, (meta, result) in result_map.items():
# Default to true, if no aggs are found, we still want to match
match = True