X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=osdf%2Fconfig%2Floader.py;h=dca003347c56760664f8aa05ed9a849fd6bd4e12;hb=15a847b3bebd604113414938c1345fe47b2c51b5;hp=7cb363a1594f724fb265d198ab13b34037544f83;hpb=20d6ef66c107f9c01c9594edfde6ac0ca5faf7f2;p=optf%2Fosdf.git 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