From: Yaron Yogev Date: Thu, 3 Aug 2017 10:49:39 +0000 (+0300) Subject: use yaml.safe_load instead of yaml.load X-Git-Tag: opnfv-5.1.RC1~115 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=52e308b62fbbec2c551140a22e49d93db5b0ef7f;p=calipso.git use yaml.safe_load instead of yaml.load Change-Id: Ifbe3ce4dba1047ffa97900c47b955192f4c8be1d Signed-off-by: Yaron Yogev --- diff --git a/app/discover/fetchers/cli/cli_fetch_vpp_vedges.py b/app/discover/fetchers/cli/cli_fetch_vpp_vedges.py index f9c622d..2023fe6 100644 --- a/app/discover/fetchers/cli/cli_fetch_vpp_vedges.py +++ b/app/discover/fetchers/cli/cli_fetch_vpp_vedges.py @@ -42,7 +42,7 @@ class TestCLIFormatter(base.ClientTestBase): result = self._create_net('yaml', ['name', 'admin_state_up']) self.assertDictEqual({'name': self.net_name, 'admin_state_up': True}, - yaml.load(result)) + yaml.safe_load(result)) def test_net_create_with_value_formatter(self): # NOTE(amotoki): In 'value' formatter, there is no guarantee