aboutsummaryrefslogtreecommitdiffstats
path: root/osdf/config/loader.py
diff options
context:
space:
mode:
Diffstat (limited to 'osdf/config/loader.py')
-rw-r--r--osdf/config/loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdf/config/loader.py b/osdf/config/loader.py
index 7cb363a..dca0033 100644
--- a/osdf/config/loader.py
+++ b/osdf/config/loader.py
@@ -31,7 +31,7 @@ def load_config_file(config_file: str, child_name="dockerConfiguration") -> dict
with open(config_file, 'r') as fid:
res = {}
if config_file.endswith(".yaml"):
- res = yaml.load(fid)
+ res = yaml.safe_load(fid)
elif config_file.endswith(".json") or config_file.endswith("json"):
res = json.load(fid)
return res.get(child_name, res) if child_name else res