diff --git a/salt/sensoroni/files/analyzers/helpers.py b/salt/sensoroni/files/analyzers/helpers.py index f4ef4a1e6..903e2373b 100644 --- a/salt/sensoroni/files/analyzers/helpers.py +++ b/salt/sensoroni/files/analyzers/helpers.py @@ -1,7 +1,6 @@ import json import os import sys -import yaml def checkSupportedType(meta, artifact_type): @@ -24,5 +23,6 @@ def loadMetadata(file): def loadConfig(path): + import yaml with open(str(path), "r") as conffile: return yaml.safe_load(conffile)