mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
e5d04fd6bd
commit
c376954ecf
1 changed files with 2 additions and 0 deletions
|
@ -1211,6 +1211,8 @@ class LinuxHardware(Hardware):
|
||||||
mtab = get_file_content('/etc/mtab', '')
|
mtab = get_file_content('/etc/mtab', '')
|
||||||
for line in mtab.split('\n'):
|
for line in mtab.split('\n'):
|
||||||
fields = line.rstrip('\n').split()
|
fields = line.rstrip('\n').split()
|
||||||
|
if len(fields) < 4:
|
||||||
|
continue
|
||||||
if fields[0].startswith('/') or ':/' in fields[0]:
|
if fields[0].startswith('/') or ':/' in fields[0]:
|
||||||
if(fields[2] != 'none'):
|
if(fields[2] != 'none'):
|
||||||
size_total, size_available = self._get_mount_size_facts(fields[1])
|
size_total, size_available = self._get_mount_size_facts(fields[1])
|
||||||
|
|
Loading…
Reference in a new issue