Commit fb0a99e5 by Bernhard Weitzhofer

Fix if-statement that always evaluates True

parent a02202ef
...@@ -732,7 +732,7 @@ def listify_lookup_plugin_terms(terms, basedir, inject): ...@@ -732,7 +732,7 @@ def listify_lookup_plugin_terms(terms, basedir, inject):
except: except:
pass pass
if '{' or '[' in terms: if '{' in terms or '[' in terms:
# Jinja2 already evaluated a variable to a list. # Jinja2 already evaluated a variable to a list.
# Jinja2-ified list needs to be converted back to a real type # Jinja2-ified list needs to be converted back to a real type
# TODO: something a bit less heavy than eval # TODO: something a bit less heavy than eval
......
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