mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
changed get_mount_facts to ignore mount types 'none'
This commit is contained in:
parent
e204394c2c
commit
f76043f404
1 changed files with 11 additions and 10 deletions
|
@ -547,6 +547,7 @@ class LinuxHardware(Hardware):
|
||||||
for line in mtab.split('\n'):
|
for line in mtab.split('\n'):
|
||||||
if line.startswith('/'):
|
if line.startswith('/'):
|
||||||
fields = line.rstrip('\n').split()
|
fields = line.rstrip('\n').split()
|
||||||
|
if(fields[2] != 'none'):
|
||||||
statvfs_result = os.statvfs(fields[1])
|
statvfs_result = os.statvfs(fields[1])
|
||||||
self.facts['mounts'].append(
|
self.facts['mounts'].append(
|
||||||
{'mount': fields[1],
|
{'mount': fields[1],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue