Use safe_load to load yaml

Replad `yaml.load` with `yaml.safe_load`
This commit is contained in:
Ganesh B. Nalawade 2017-09-14 21:36:56 +05:30 committed by Toshio Kuratomi
commit 8c3bf20a13
3 changed files with 3 additions and 3 deletions

View file

@ -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']):