Handle when the lookup-plugin is used in jinja-style

This fixes #14190.
This commit is contained in:
Dag Wieers 2016-02-03 01:52:17 +01:00 committed by Brian Coca
parent 901beeec55
commit 6c559e904a

View file

@ -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: