From 29b70b6da1cbae16f6c6332e54ac146c8a2fc106 Mon Sep 17 00:00:00 2001 From: Panagiotis Karalis Date: Tue, 10 Jul 2018 14:49:18 +0300 Subject: CI ERROR - File contains violation on test_runner Proposed solution by CI server: "Avoid dangerous file parsing & serialization libs, use yaml.safe_load" Change-Id: Iff9764601bc135cec271e16444d0bbbb4da8d459 Signed-off-by: Panagiotis Karalis --- dovetail/test_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dovetail/test_runner.py b/dovetail/test_runner.py index 68364fda..40e55283 100644 --- a/dovetail/test_runner.py +++ b/dovetail/test_runner.py @@ -180,7 +180,7 @@ class DockerRunner(object): if not config_item: config_item = self._add_testcase_info(testcase) full_task = self._render(task_template, **config_item) - full_task_yaml = yaml.load(full_task) + full_task_yaml = yaml.safe_load(full_task) dt_cfg.dovetail_config.update(full_task_yaml) return dt_cfg.dovetail_config -- cgit 1.2.3-korg