mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Use safe_load to load yaml
Replad `yaml.load` with `yaml.safe_load`
This commit is contained in:
parent
5c029abac1
commit
8c3bf20a13
3 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue