1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-18 05:43:10 +00:00

lookupfile should lookup the given file=xxx

(Earlier it used to lookup the pre-split term.)
This commit is contained in:
Abhijit Menon-Sen 2015-07-25 15:38:26 +05:30
parent 8509f22839
commit 8737061a8f

View file

@ -75,7 +75,7 @@ class LookupModule(LookupBase):
if paramvals['delimiter'] == 'TAB':
paramvals['delimiter'] = "\t"
lookupfile = self._loader.path_dwim_relative(basedir, 'files', term)
lookupfile = self._loader.path_dwim_relative(basedir, 'files', paramvals['file'])
var = self.read_csv(lookupfile, key, paramvals['delimiter'], paramvals['default'], paramvals['col'])
if var is not None:
if type(var) is list: