changed get_mount_facts to ignore mount types 'none'

This commit is contained in:
Toshaan Bharvani 2013-06-07 16:55:33 +02:00
parent e204394c2c
commit f76043f404

View file

@ -547,6 +547,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],