From 52e308b62fbbec2c551140a22e49d93db5b0ef7f Mon Sep 17 00:00:00 2001 From: Yaron Yogev Date: Thu, 3 Aug 2017 13:49:39 +0300 Subject: use yaml.safe_load instead of yaml.load Change-Id: Ifbe3ce4dba1047ffa97900c47b955192f4c8be1d Signed-off-by: Yaron Yogev --- app/discover/fetchers/cli/cli_fetch_vpp_vedges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/discover/fetchers') 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 -- cgit 1.2.3-korg