From fb0a99e5d88a818dba62abe87fe8fb9de735dd0e Mon Sep 17 00:00:00 2001 From: Bernhard Weitzhofer Date: Wed, 17 Apr 2013 19:40:06 +0200 Subject: [PATCH] Fix if-statement that always evaluates True --- lib/ansible/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index 78eb9b318cb..138411cf5b2 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