correctly detect action
named matched only cause i set it to the same in my tests fixes #14857
This commit is contained in:
parent
152a2b9b8f
commit
ce282e9373
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue