|
|
@ -633,10 +633,7 @@ class LinuxHardware(Hardware):
|
|
|
|
size_total = statvfs_result.f_bsize * statvfs_result.f_blocks
|
|
|
|
size_total = statvfs_result.f_bsize * statvfs_result.f_blocks
|
|
|
|
size_available = statvfs_result.f_bsize * (statvfs_result.f_bavail)
|
|
|
|
size_available = statvfs_result.f_bsize * (statvfs_result.f_bavail)
|
|
|
|
except OSError, e:
|
|
|
|
except OSError, e:
|
|
|
|
if e.errno == errno.ENOENT:
|
|
|
|
continue
|
|
|
|
pass
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
self.fail_json(msg=e.strerror)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.facts['mounts'].append(
|
|
|
|
self.facts['mounts'].append(
|
|
|
|
{'mount': fields[1],
|
|
|
|
{'mount': fields[1],
|
|
|
|