From 6c559e904a9798ec10ac5f2ff40487af48a535fa Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Wed, 3 Feb 2016 01:52:17 +0100 Subject: [PATCH] Handle when the lookup-plugin is used in jinja-style This fixes #14190. --- lib/ansible/plugins/lookup/first_found.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/first_found.py b/lib/ansible/plugins/lookup/first_found.py index 915363180d..8145c72b02 100644 --- a/lib/ansible/plugins/lookup/first_found.py +++ b/lib/ansible/plugins/lookup/first_found.py @@ -171,7 +171,7 @@ class LookupModule(LookupBase): else: total_search.append(term) else: - total_search = terms + total_search = self._flatten(terms) roledir = variables.get('roledir') for fn in total_search: