mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
correctly detect action
named matched only cause i set it to the same in my tests fixes #14857
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user