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

correctly detect action

named matched only cause i set it to the same in my tests
fixes #14857
This commit is contained in:
Brian Coca 2016-08-08 14:25:59 -04:00
parent 152a2b9b8f
commit ce282e9373

View file

@ -194,7 +194,7 @@ class TaskExecutor:
# give lookup task 'context' for subdir (mostly needed for first_found)
for subdir in ['template', 'var', 'file']: #TODO: move this to constants?
if subdir in self._task.name:
if subdir in self._task.action:
break
setattr(mylookup,'_subdir', subdir + 's')