From e1f5b801cfdb3ec4fcc9784ef23c13bc8f02f998 Mon Sep 17 00:00:00 2001 From: jay Date: Fri, 10 Jan 2014 16:32:41 +0000 Subject: [PATCH] fixed bug causing symlinks to fail in the host_vars, group_vars etc directories --- lib/ansible/inventory/vars_plugins/group_vars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/inventory/vars_plugins/group_vars.py b/lib/ansible/inventory/vars_plugins/group_vars.py index 3473b3192c0..06a22169a7a 100644 --- a/lib/ansible/inventory/vars_plugins/group_vars.py +++ b/lib/ansible/inventory/vars_plugins/group_vars.py @@ -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."