summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2016-11-21 09:42:34 +0800
committerwu.zhihui <wu.zhihui1@zte.com.cn>2016-11-21 09:42:34 +0800
commit53917cb499147b494fb488e945662535e01013a2 (patch)
tree74aeb45956472efb3b93113ae2d81cf13d27dc5f /deploy
parentea776f2faf1d99c49d3dcf256fd0eda840c83639 (diff)
Fix a security issue
load yaml file by using function safe_load() See link http://pyyaml.org/wiki/PyYAMLDocumentation for details. Change-Id: I91d1746c5ca1bd1770d47d4e8d0f85b6aed47934 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy/get_conf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/get_conf.py b/deploy/get_conf.py
index 37cacb51..31ccaca0 100755
--- a/deploy/get_conf.py
+++ b/deploy/get_conf.py
@@ -13,7 +13,7 @@ import yaml
def init(file):
with open(file) as fd:
- return yaml.load(fd)
+ return yaml.safe_load(fd)
def networkdecorator(func):