diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-09-20 14:59:28 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-09-20 14:59:28 +0800 |
commit | fd3040c8eaa96ed14a75fbd34e009da1e59dd947 (patch) | |
tree | 5fc20bcaf3b3eb25e0250a937b8d6c70aedac04f /func/spawn_vm.py | |
parent | fac2a3bff97efed6d4e50bfe249c8107100b8f52 (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/spawn_vm.py')
-rw-r--r-- | func/spawn_vm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/func/spawn_vm.py b/func/spawn_vm.py index 15c26861..5710308b 100644 --- a/func/spawn_vm.py +++ b/func/spawn_vm.py @@ -65,7 +65,7 @@ class SpawnVM(Env_setup): Heat_Dic = {}
try:
with open('./heat/SampleHeat.yaml', 'r+') as H_temp:
- Heat_Dic = yaml.load(H_temp)
+ Heat_Dic = yaml.safe_load(H_temp)
except yaml.YAMLError as exc:
if hasattr(exc, 'problem_mark'):
mark = exc.problem_mark
|