mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50: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
|
@ -78,7 +78,7 @@ def parse_cli(output, tmpl):
|
|||
except ImportError as exc:
|
||||
raise AnsibleError(str(exc))
|
||||
|
||||
spec = yaml.load(open(tmpl).read())
|
||||
spec = yaml.safe_load(open(tmpl).read())
|
||||
obj = {}
|
||||
|
||||
for name, attrs in iteritems(spec['keys']):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue