mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Add new function to verify list value
This commit is contained in:
@@ -10,6 +10,11 @@ def checkSupportedType(meta, artifact_type):
|
||||
return True
|
||||
|
||||
|
||||
def verifyNonEmptyListValue(conf, key):
|
||||
if key not in conf or not isinstance(conf[key], list) or len(conf[key]) == 0:
|
||||
sys.exit(126)
|
||||
|
||||
|
||||
def parseArtifact(artifact):
|
||||
data = json.loads(artifact)
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user