aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/vmtp/vmtp.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-04-25 17:56:51 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-04-25 19:54:36 +0200
commit0199867815b599994fae350a67263d91435adc29 (patch)
treec4bb9f9a953f0e01b7474a261eb08f334d5df682 /functest/opnfv_tests/openstack/vmtp/vmtp.py
parentd777f2e588a321d5c01e2e50ffa5c8fc5a27c77c (diff)
Remove python warnings (yaml.load)
It updates refstack_defcore and vmtp to conform with yaml [1]. [1] https://build.opnfv.org/ci/job/functest-opnfv-functest-smoke-latest-refstack_defcore-run/186/console Change-Id: I38e7a8d4c294c27f01c3e7385c4b716522a40334 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/openstack/vmtp/vmtp.py')
-rw-r--r--functest/opnfv_tests/openstack/vmtp/vmtp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/vmtp/vmtp.py b/functest/opnfv_tests/openstack/vmtp/vmtp.py
index 3462ec063..883f35dca 100644
--- a/functest/opnfv_tests/openstack/vmtp/vmtp.py
+++ b/functest/opnfv_tests/openstack/vmtp/vmtp.py
@@ -107,7 +107,7 @@ class Vmtp(singlevm.VmReady2):
output = subprocess.check_output(cmd)
self.__logger.info("%s\n%s", " ".join(cmd), output)
with open(self.config, "w+") as conf:
- vmtp_conf = yaml.load(output)
+ vmtp_conf = yaml.full_load(output)
vmtp_conf["private_key_file"] = self.privkey_filename
vmtp_conf["public_key_file"] = self.pubkey_filename
vmtp_conf["image_name"] = str(self.image.name)