Merge branch '7.9' into main
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user