brought back terms testing as with_ is not only way to call and we cannot guarantee terms is a list otherwise.
This commit is contained in:
parent
091caf6279
commit
aaab69cae9
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@ class LookupModule(LookupBase):
|
||||||
|
|
||||||
def run(self, terms, variables=None, **kwargs):
|
def run(self, terms, variables=None, **kwargs):
|
||||||
|
|
||||||
|
if not isinstance(terms, list):
|
||||||
|
terms = [ terms ]
|
||||||
|
|
||||||
ret = []
|
ret = []
|
||||||
for term in terms:
|
for term in terms:
|
||||||
basedir_path = self._loader.path_dwim(term)
|
basedir_path = self._loader.path_dwim(term)
|
||||||
|
|
Loading…
Reference in a new issue