aboutsummaryrefslogtreecommitdiffstats
path: root/osdf/config/loader.py
diff options
context:
space:
mode:
authorvrvarma <vv8305@att.com>2019-11-05 20:35:54 -0500
committervrvarma <vv8305@att.com>2019-11-06 00:04:39 -0500
commit15a847b3bebd604113414938c1345fe47b2c51b5 (patch)
tree5dc392be5f19b794b3c4d3fcfc7eb3f611138a30 /osdf/config/loader.py
parent20d6ef66c107f9c01c9594edfde6ac0ca5faf7f2 (diff)
Add onap log spec 1.2 for osdf
OPTFRA-319 OPTFRA-607 and OPTFRA-629 included in this fix Change-Id: Ieeeaa0417ffa41360d790c01b0ef1404960e6b6a Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-319
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