Commit aaab69ca by Brian Coca

brought back terms testing as with_ is not only way to call and we cannot…

brought back terms testing as with_ is not only way to call and we cannot guarantee terms is a list otherwise.
parent 091caf62
...@@ -27,6 +27,9 @@ class LookupModule(LookupBase): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment