mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
removed bare variable detection as this confuses people and forced us to allow for bare expressions
This commit is contained in:
parent
94aca71546
commit
7044b5a8d1
1 changed files with 0 additions and 5 deletions
|
@ -86,11 +86,6 @@ class Task(object):
|
||||||
elif x.startswith("with_"):
|
elif x.startswith("with_"):
|
||||||
if isinstance(ds[x], basestring):
|
if isinstance(ds[x], basestring):
|
||||||
param = ds[x].strip()
|
param = ds[x].strip()
|
||||||
# Only a variable, no logic
|
|
||||||
if (param.startswith('{{') and
|
|
||||||
param.find('}}') == len(ds[x]) - 2 and
|
|
||||||
param.find('|') == -1):
|
|
||||||
utils.warning("It is unnecessary to use '{{' in loops, leave variables in loop expressions bare.")
|
|
||||||
|
|
||||||
plugin_name = x.replace("with_","")
|
plugin_name = x.replace("with_","")
|
||||||
if plugin_name in utils.plugins.lookup_loader:
|
if plugin_name in utils.plugins.lookup_loader:
|
||||||
|
|
Loading…
Reference in a new issue