summaryrefslogtreecommitdiffstats
path: root/func/env_setup.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-09-20 14:59:28 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-09-20 14:59:28 +0800
commitfd3040c8eaa96ed14a75fbd34e009da1e59dd947 (patch)
tree5fc20bcaf3b3eb25e0250a937b8d6c70aedac04f /func/env_setup.py
parentfac2a3bff97efed6d4e50bfe249c8107100b8f52 (diff)
Fix issues found in security review
JIRA: QTIP-105 Change-Id: I08108a982f9059fd19b92df0d219fa8f13f288ad Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'func/env_setup.py')
-rw-r--r--func/env_setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/func/env_setup.py b/func/env_setup.py
index 96f984cb..3697f235 100644
--- a/func/env_setup.py
+++ b/func/env_setup.py
@@ -174,7 +174,7 @@ class Env_setup:
def parse(self, config_file_path):
try:
f_name = open(config_file_path, 'r+')
- doc = yaml.load(f_name)
+ doc = yaml.safe_load(f_name)
f_name.close()
if doc['Scenario']['benchmark']:
self.benchmark = doc['Scenario']['benchmark']