diff options
author | Nikolas Hermanns <nikolas.hermanns@ericsson.com> | 2017-01-31 14:45:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-31 14:45:54 +0000 |
commit | 192e6af198cf94a678edece8ad4bb123132e9ce2 (patch) | |
tree | c9ed8b238a1b4d5c82dcf8dc26f597cc92a6adaa /odl-pipeline/lib/utils/utils_yaml.py | |
parent | 4182a4715e55969868f17b11e5e3ac79fc3c7555 (diff) | |
parent | c7cbf47421382ef5db5ad8a2f470def52640b21f (diff) |
Merge "Updates ODL Pipeline scripts for CSIT"
Diffstat (limited to 'odl-pipeline/lib/utils/utils_yaml.py')
-rwxr-xr-x | odl-pipeline/lib/utils/utils_yaml.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odl-pipeline/lib/utils/utils_yaml.py b/odl-pipeline/lib/utils/utils_yaml.py index f9513b8..b9357f6 100755 --- a/odl-pipeline/lib/utils/utils_yaml.py +++ b/odl-pipeline/lib/utils/utils_yaml.py @@ -12,9 +12,9 @@ import yaml def write_dict_to_yaml(config, path): with open(path, 'w+') as f: - yaml.dump(config, f, default_flow_style=False) + yaml.safe_dump(config, f, default_flow_style=False) def read_dict_from_yaml(path): with open(path, 'r') as f: - return yaml.load(f) + return yaml.safe_load(f) |