diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index 78eb9b318c..138411cf5b 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -732,7 +732,7 @@ def listify_lookup_plugin_terms(terms, basedir, inject): except: pass - if '{' or '[' in terms: + if '{' in terms or '[' in terms: # Jinja2 already evaluated a variable to a list. # Jinja2-ified list needs to be converted back to a real type # TODO: something a bit less heavy than eval