summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaron Yogev <yaronyogev@gmail.com>2017-08-03 13:49:39 +0300
committerYaron Yogev <yaronyogev@gmail.com>2017-08-03 13:49:39 +0300
commit52e308b62fbbec2c551140a22e49d93db5b0ef7f (patch)
tree1f5bc2f41d624e192003c54be478b988e69cefcf
parent3dc0687336e398019f0f8e8d7b748ce9371a8cca (diff)
use yaml.safe_load instead of yaml.load
Change-Id: Ifbe3ce4dba1047ffa97900c47b955192f4c8be1d Signed-off-by: Yaron Yogev <yaronyogev@gmail.com>
-rw-r--r--app/discover/fetchers/cli/cli_fetch_vpp_vedges.py2
1 files changed, 1 insertions, 1 deletions
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