Merge branch '7.9' into main

This commit is contained in:
Ross Wolf
2020-08-03 15:20:36 -06:00
50 changed files with 105 additions and 104 deletions
+5 -4
View File
@@ -142,10 +142,11 @@ def toml_write(rule_contents, outfile=None):
# but will at least purge extraneous white space
query = contents['rule'].pop('query', '').strip()
tags = contents['rule'].get("tags", [])
if tags and isinstance(tags, list):
contents['rule']["tags"] = list(sorted(set(tags)))
# - As tags are expanding, we may want to reconsider the need to have them in alphabetical order
# tags = contents['rule'].get("tags", [])
#
# if tags and isinstance(tags, list):
# contents['rule']["tags"] = list(sorted(set(tags)))
top = OrderedDict()
bottom = OrderedDict()