summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPanagiotis Karalis <pkaralis@intracom-telecom.com>2018-07-10 14:49:18 +0300
committerPanagiotis Karalis <pkaralis@intracom-telecom.com>2018-07-10 14:49:18 +0300
commit29b70b6da1cbae16f6c6332e54ac146c8a2fc106 (patch)
tree5d9d194da487e6ea0ff0f0d6b646125230223d8e
parent9d688995687a701ac1b5572e74b6c028885c92ea (diff)
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 <pkaralis@intracom-telecom.com>
-rw-r--r--dovetail/test_runner.py2
1 files changed, 1 insertions, 1 deletions
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