removed bare variable detection as this confuses people and forced us to allow for bare expressions

This commit is contained in:
Brian Coca 2015-02-19 08:29:53 -05:00
parent 7d2915442e
commit 824fc036e7

View file

@ -84,11 +84,6 @@ class Task(object):
elif x.startswith("with_"):
if isinstance(ds[x], basestring):
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_","")
if plugin_name in utils.plugins.lookup_loader: