mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #2705 from b6d/utils-fix
Fix if-statement that always evaluates True
This commit is contained in:
commit
6544af9616
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue