diff --git a/salt/sensoroni/files/analyzers/helpers.py b/salt/sensoroni/files/analyzers/helpers.py index 903e2373b..64e50b250 100644 --- a/salt/sensoroni/files/analyzers/helpers.py +++ b/salt/sensoroni/files/analyzers/helpers.py @@ -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