diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-09-21 07:12:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-09-21 07:12:51 +0000 |
commit | ad90940e82c0039372d68f3136791851994557a9 (patch) | |
tree | 00ce29745cadfad9f1497c534fe3c7f47ad20672 /func/spawn_vm.py | |
parent | 8664db2de47ca768108e22499302e36e58ac9d6d (diff) | |
parent | fd3040c8eaa96ed14a75fbd34e009da1e59dd947 (diff) |
Merge "Fix issues found in security review"
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
|