From dee5dba82aa7ae9fb8da9d00df90110f1027e1aa 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 915363180d2..8145c72b020 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: