1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

With fileglob should return full paths as in 1.1

This commit is contained in:
Michael DeHaan 2013-04-23 00:54:39 -04:00
parent 5cc3dd353d
commit bd0c22868e

View file

@ -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