more places to use yaml.safe_load

This commit is contained in:
Michael DeHaan 2013-02-23 13:34:14 -05:00
parent a9ea3136cf
commit b75b9681a8
4 changed files with 4 additions and 4 deletions

View file

@ -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)