1
0
Fork 0

Adding upstream version 2020.10.7.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
Daniel Baumann 2025-06-22 23:00:13 +02:00
parent 82f9f8c024
commit 51333c7ef4
Signed by: daniel.baumann
GPG key ID: BCC918A2ABD66424
216 changed files with 127737 additions and 0 deletions

18
scripts/verify_json.py Normal file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env python3
import json
import sys
KEYS = set(['snitch_map', 'action_map', 'version'])
with open(sys.argv[1]) as f:
try:
js = json.load(f)
if set(js.keys()) == KEYS:
sys.exit(0)
else:
print("json keys %s are not correct" % js.keys())
sys.exit(1)
except Exception as e:
print("error parsing json:", e)
sys.exit(1)