summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2016-06-24 01:18:41 -0500
committerJames Cammarata <jimi@sngx.net>2016-06-24 01:18:41 -0500
commit943c9327aac5b57c8ee25f8e86090ec6b6875e01 (patch)
treeb986007da01e91767df31dd70dc8153e264666eb
parent1f92ade584fd86a0bbf49179888414c542a6371d (diff)
downloadansible-issue_15190.tar.gz
Allow fileglob lookup to include symlinksissue_15190
Fixes #15190
-rw-r--r--lib/ansible/plugins/lookup/fileglob.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/lookup/fileglob.py b/lib/ansible/plugins/lookup/fileglob.py
index 7889e6e5bc..4ab158c052 100644
--- a/lib/ansible/plugins/lookup/fileglob.py
+++ b/lib/ansible/plugins/lookup/fileglob.py
@@ -33,5 +33,5 @@ class LookupModule(LookupBase):
term_file = os.path.basename(term)
dwimmed_path = self._loader.path_dwim_relative(basedir, 'files', os.path.dirname(term))
globbed = glob.glob(os.path.join(dwimmed_path, term_file))
- ret.extend(g for g in globbed if os.path.isfile(g))
+ ret.extend(g for g in globbed if os.path.isfile(g) or os.path.islink(g))
return ret