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')