Add new function to verify list value

This commit is contained in:
Wes
2022-12-13 15:56:26 +00:00
parent 56019f48ca
commit 20b79b7ab0

View File

@@ -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