From 824fc036e7aa4d4e0a9dd90b2aa6eab40af1ff41 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 19 Feb 2015 08:29:53 -0500 Subject: [PATCH] removed bare variable detection as this confuses people and forced us to allow for bare expressions --- lib/ansible/playbook/task.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index 77cb97e5c0f..b8b58f1c0bd 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -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: