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

Continue on mount errors, don't fail the setup module.

This commit is contained in:
Michael DeHaan 2013-07-22 13:57:35 -04:00
parent f0eafff1b4
commit fc9aa5f014

View file

@ -633,10 +633,7 @@ class LinuxHardware(Hardware):
size_total = statvfs_result.f_bsize * statvfs_result.f_blocks
size_available = statvfs_result.f_bsize * (statvfs_result.f_bavail)
except OSError, e:
if e.errno == errno.ENOENT:
pass
else:
module.fail_json(msg=e.strerror)
continue
self.facts['mounts'].append(
{'mount': fields[1],