From ce282e93730243ebf5373ac604d5d1cb74bebd20 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 8 Aug 2016 14:25:59 -0400 Subject: [PATCH] correctly detect action named matched only cause i set it to the same in my tests fixes #14857 --- lib/ansible/executor/task_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index e454f493c22..e34c4784e10 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -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')