mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fixed bug causing symlinks to fail in the host_vars, group_vars etc directories
This commit is contained in:
parent
78ec7c736f
commit
e1f5b801cf
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ def _load_vars_from_path(path, results):
|
|||
# symbolic link
|
||||
if stat.S_ISLNK(pathstat.st_mode):
|
||||
try:
|
||||
target = os.readlink(path)
|
||||
target = os.path.realpath(path)
|
||||
except os.error, err2:
|
||||
raise errors.AnsibleError("The symbolic link at %s "
|
||||
"is not readable: %s. Please check its permissions."
|
||||
|
|
Loading…
Reference in a new issue