Merge pull request #14639 from ivovangeel/find_mount_point-bug
Fixed bug in find_mount_point function
This commit is contained in:
commit
3ea3fa8d46
1 changed files with 1 additions and 1 deletions
|
@ -818,7 +818,7 @@ class AnsibleModule(object):
|
|||
return (uid, gid)
|
||||
|
||||
def find_mount_point(self, path):
|
||||
path = os.path.abspath(os.path.expanduser(os.path.expandvars(path)))
|
||||
path = os.path.realpath(os.path.expanduser(os.path.expandvars(path)))
|
||||
while not os.path.ismount(path):
|
||||
path = os.path.dirname(path)
|
||||
return path
|
||||
|
|
Loading…
Reference in a new issue