mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Use safe_load to load yaml
Replad `yaml.load` with `yaml.safe_load`
This commit is contained in:
committed by
Toshio Kuratomi
parent
5c029abac1
commit
8c3bf20a13
@@ -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']):
|
||||
|
||||
Reference in New Issue
Block a user