mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #16895 from rallytime/bp-16797
Backport #16797 to 2014.7
This commit is contained in:
commit
eeb9c408f3
@ -231,6 +231,14 @@ def get_mode(device):
|
||||
for line in out.splitlines():
|
||||
comps = line.strip().split()
|
||||
if comps[3] not in ret:
|
||||
if comps[0].startswith('quotaon'):
|
||||
if comps[1].startswith('Mountpoint'):
|
||||
ret[comps[4]] = 'disabled'
|
||||
continue
|
||||
elif comps[1].startswith('Cannot'):
|
||||
ret[device] = 'Not found'
|
||||
return ret
|
||||
continue
|
||||
ret[comps[3]] = {
|
||||
'device': comps[4].replace('(', '').replace(')', ''),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user