Commit 1702c2fd by James Cammarata

Merge branch 'patch-1' of https://github.com/Mbosco/ansible into Mbosco-patch-1

parents 9564818e 39fcbd1f
......@@ -220,9 +220,15 @@ class Connection(object):
if not os.path.exists(hf):
hfiles_not_found += 1
continue
host_fh = open(hf)
data = host_fh.read()
host_fh.close()
try:
host_fh = open(hf)
except IOError, e:
hfiles_not_found += 1
continue
else:
data = host_fh.read()
host_fh.close()
for line in data.split("\n"):
if line is None or " " not in line:
continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment