mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
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)
|
return (uid, gid)
|
||||||
|
|
||||||
def find_mount_point(self, path):
|
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):
|
while not os.path.ismount(path):
|
||||||
path = os.path.dirname(path)
|
path = os.path.dirname(path)
|
||||||
return path
|
return path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue