mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
With fileglob should return full paths as in 1.1
This commit is contained in:
@@ -34,6 +34,6 @@ class LookupModule(object):
|
||||
|
||||
dwimmed = utils.path_dwim(self.basedir, term)
|
||||
globbed = glob.glob(dwimmed)
|
||||
ret.extend(os.path.basename(g) for g in globbed if os.path.isfile(g))
|
||||
ret.extend(g for g in globbed if os.path.isfile(g))
|
||||
|
||||
return ret
|
||||
|
||||
Reference in New Issue
Block a user