mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +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
|
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):
|
def parseArtifact(artifact):
|
||||||
data = json.loads(artifact)
|
data = json.loads(artifact)
|
||||||
return data
|
return data
|
||||||
|
|||||||
Reference in New Issue
Block a user