Commit f76043f4 by Toshaan Bharvani

changed get_mount_facts to ignore mount types 'none'

parent e204394c
...@@ -547,6 +547,7 @@ class LinuxHardware(Hardware): ...@@ -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],
......
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