Use safe_load to load yaml (#30408)
Replace `yaml.load` with `yaml.safe_load`
(cherry picked from commit 8c3bf20a13
)
This commit is contained in:
parent
b4004e5046
commit
4f5bf2e08f
2 changed files with 3 additions and 1 deletions
|
@ -48,6 +48,8 @@ Ansible Changes By Release
|
|||
* Fix an encoding issue with secret (password) vars_prompts
|
||||
* Fix for Windows become to show the stdout and stderr strings on a failure
|
||||
* Fix the issue SSL verification can not be disabled for Tower modules
|
||||
* Use safe_load instead on load to read a yaml document
|
||||
|
||||
|
||||
<a id="2.3.2"></a>
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue