Merge pull request #14639 from ivovangeel/find_mount_point-bug

Fixed bug in find_mount_point function
pull/16407/head
James Cammarata 8 years ago committed by GitHub
commit 3ea3fa8d46

@ -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…
Cancel
Save