diff options
author | Rex Lee <limingjiang@huawei.com> | 2017-07-26 00:41:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-26 00:41:58 +0000 |
commit | d35ed0fb93098162af4e925d8499554510f73d10 (patch) | |
tree | b5d443a0457e18466ca16babba94ecb5a8d9f087 | |
parent | ac4f5055109dff03f9f1bf6ab42a27cd78446d92 (diff) | |
parent | cb5a76aa8e999919c1dd273d1010d0e64d020d52 (diff) |
Merge "vnfdgen: replace yaml.load with yaml.safe_load"
-rw-r--r-- | yardstick/network_services/vnf_generic/vnfdgen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/network_services/vnf_generic/vnfdgen.py b/yardstick/network_services/vnf_generic/vnfdgen.py index 40cc14a49..b56a91915 100644 --- a/yardstick/network_services/vnf_generic/vnfdgen.py +++ b/yardstick/network_services/vnf_generic/vnfdgen.py @@ -48,7 +48,7 @@ def generate_vnfd(vnf_model, node): rendered_vnfd = render(vnf_model, **node) # This is done to get rid of issues with serializing node del node["get"] - filled_vnfd = yaml.load(rendered_vnfd) + filled_vnfd = yaml.safe_load(rendered_vnfd) return filled_vnfd |