1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
James Cammarata 2014-06-23 12:57:13 -05:00
commit 1702c2fd50

View file

@ -220,9 +220,15 @@ class Connection(object):
if not os.path.exists(hf): if not os.path.exists(hf):
hfiles_not_found += 1 hfiles_not_found += 1
continue continue
host_fh = open(hf) try:
data = host_fh.read() host_fh = open(hf)
host_fh.close() except IOError, e:
hfiles_not_found += 1
continue
else:
data = host_fh.read()
host_fh.close()
for line in data.split("\n"): for line in data.split("\n"):
if line is None or " " not in line: if line is None or " " not in line:
continue continue