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

Merge pull request #3147 from toshywoshy/setup_mtab_without_bind

changed get_mount_facts to ignore mount types 'none'
This commit is contained in:
Michael DeHaan 2013-06-18 17:56:49 -07:00
commit 575e052c6c

View file

@ -617,6 +617,7 @@ class LinuxHardware(Hardware):
for line in mtab.split('\n'):
if line.startswith('/'):
fields = line.rstrip('\n').split()
if(fields[2] != 'none'):
statvfs_result = os.statvfs(fields[1])
self.facts['mounts'].append(
{'mount': fields[1],