From cb5a76aa8e999919c1dd273d1010d0e64d020d52 Mon Sep 17 00:00:00 2001 From: Ross Brattain Date: Sat, 22 Jul 2017 20:12:14 -0700 Subject: [PATCH] vnfdgen: replace yaml.load with yaml.safe_load JIRA: YARDSTICK-760 Change-Id: I145c948c1f08562e12877f5d0fe7e797e9d989f9 Signed-off-by: Ross Brattain --- yardstick/network_services/vnf_generic/vnfdgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.16.6