Commit 575e052c by Michael DeHaan

Merge pull request #3147 from toshywoshy/setup_mtab_without_bind

changed get_mount_facts to ignore mount types 'none'
parents 132c89e6 f76043f4
......@@ -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],
......
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