Merge pull request #14639 from ivovangeel/find_mount_point-bug

Fixed bug in find_mount_point function
This commit is contained in:
James Cammarata 2016-06-22 22:38:54 -05:00 committed by GitHub
commit 3ea3fa8d46

View file

@ -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