chg: [tools] fix the date input from the sigma rules generator

This commit is contained in:
Alexandre Dulaunoy 2024-08-20 13:56:59 +02:00
parent 06368b5f61
commit 916e9e3e29
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

@ -101,7 +101,7 @@ def create_cluster_json(galaxyCluster):
This function finally creates the sigma-cluster.json file with all the information. This function finally creates the sigma-cluster.json file with all the information.
""" """
with open("sigma-cluster.json", "w") as f: with open("sigma-cluster.json", "w") as f:
json.dump(galaxyCluster, f) json.dump(galaxyCluster, f, default=str)
def parseYaml(inputPath, yamlFile): def parseYaml(inputPath, yamlFile):