mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-30 04:49:09 -07:00
more places to use yaml.safe_load
This commit is contained in:
parent
a9ea3136cf
commit
b75b9681a8
4 changed files with 4 additions and 4 deletions
|
@ -226,7 +226,7 @@ base_dir = os.path.dirname(os.path.realpath(__file__))
|
|||
hosts_file = os.path.join(base_dir, 'hosts.yml')
|
||||
|
||||
with open(hosts_file) as f:
|
||||
yaml_hosts = yaml.load( f.read() )
|
||||
yaml_hosts = yaml.safe_load( f.read() )
|
||||
|
||||
groups, all_hosts = parse_yaml(yaml_hosts)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue