Skip to content

Commit

Permalink
account for multiple spaces in the string
Browse files Browse the repository at this point in the history
  • Loading branch information
masci committed Oct 2, 2017
1 parent 3096073 commit f668c48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions disk/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ def _exclude_disk(self, name, filesystem, mountpoint):
"""
self.log.debug('_exclude_disk: {}, {}, {}'.format(name, filesystem, mountpoint))

# temporary hack for NFS secure mounts
mountpoint = mountpoint.split()[0]
# hack for NFS secure mounts
# secure mounts might look like this: '/mypath (deleted)'
# we should ignore all the bits not part of the mountpoint name
mountpoint = mountpoint.split()[-1]

name_empty = not name or name == 'none'

Expand Down

0 comments on commit f668c48

Please sign in to comment.