Skip to content

Commit

Permalink
Merge pull request #622 from cvaroqui/b2.1
Browse files Browse the repository at this point in the history
Don't stop parsing mount output on first line with more than 8 fields
  • Loading branch information
cvaroqui committed Jul 7, 2023
2 parents e4c3169 + b70a4be commit 2e67a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensvc/utilities/mounts/linux.py
Expand Up @@ -34,7 +34,7 @@ def parse_mounts(self):
mounts = []
for l in out.split('\n'):
if len(l.split()) != 6:
break
continue
dev, null, mnt, null, type, mnt_opt = l.split()
m = Mount(dev, mnt, type, mnt_opt.strip('()'))
mounts.append(m)
Expand Down

0 comments on commit 2e67a41

Please sign in to comment.