mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
Merge pull request #5576 from xyrix/symlink-bug-fix
fixed bug causing symlinks to fail in the host_vars, group_vars etc dire...
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user