summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/network/aos
diff options
context:
space:
mode:
authorGanesh B. Nalawade <gnalawad@redhat.com>2017-09-14 21:36:56 +0530
committerToshio Kuratomi <a.badger@gmail.com>2017-09-14 11:19:00 -0700
commit8c3bf20a13a185e7c5c4bd0dee1bbe0b1ec2eab3 (patch)
treebde66f43c5b31664fde91e3b7de5d9df89eec626 /lib/ansible/modules/network/aos
parent5c029abac12483a47503acee216e47922f661dfc (diff)
downloadansible-8c3bf20a13a185e7c5c4bd0dee1bbe0b1ec2eab3.tar.gz
Use safe_load to load yaml
Replad `yaml.load` with `yaml.safe_load`
Diffstat (limited to 'lib/ansible/modules/network/aos')
-rw-r--r--lib/ansible/modules/network/aos/aos_blueprint_param.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/network/aos/aos_blueprint_param.py b/lib/ansible/modules/network/aos/aos_blueprint_param.py
index 3f40cbc915..d8a0f076d1 100644
--- a/lib/ansible/modules/network/aos/aos_blueprint_param.py
+++ b/lib/ansible/modules/network/aos/aos_blueprint_param.py
@@ -201,7 +201,7 @@ def get_collection_from_param_map(module, aos):
module.fail_json(msg="Python library Yaml is mandatory to use 'param_map'")
try:
- param_map = yaml.load(param_map_json)
+ param_map = yaml.safe_load(param_map_json)
except:
module.fail_json(msg="Unable to parse param_map information")