summaryrefslogtreecommitdiff
path: root/lib/ansible/vars
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2016-09-27 12:32:04 -0400
committerGitHub <noreply@github.com>2016-09-27 12:32:04 -0400
commitcf7822e201d9a3f7758e83b2d0606f5689fb8d12 (patch)
tree5a9603921da8ae5c9f0d8d494ca74175471872af /lib/ansible/vars
parent3550f73837de4413ae7b743fdcaabcc9180abf7e (diff)
downloadansible-cf7822e201d9a3f7758e83b2d0606f5689fb8d12.tar.gz
remove bare vars and undefined from lookup lists (#17647)
https://docs.ansible.com/ansible/porting_guide_2.0.html#deprecated
Diffstat (limited to 'lib/ansible/vars')
-rw-r--r--lib/ansible/vars/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ansible/vars/__init__.py b/lib/ansible/vars/__init__.py
index e333e348b1..1765037218 100644
--- a/lib/ansible/vars/__init__.py
+++ b/lib/ansible/vars/__init__.py
@@ -439,8 +439,7 @@ class VariableManager:
if task.loop is not None:
if task.loop in lookup_loader:
try:
- #TODO: remove convert_bare true and deprecate this in with_
- loop_terms = listify_lookup_plugin_terms(terms=task.loop_args, templar=templar, loader=loader, fail_on_undefined=True, convert_bare=True)
+ loop_terms = listify_lookup_plugin_terms(terms=task.loop_args, templar=templar, loader=loader, fail_on_undefined=True, convert_bare=False)
items = lookup_loader.get(task.loop, loader=loader, templar=templar).run(terms=loop_terms, variables=vars_copy)
except AnsibleUndefinedVariable as e:
# This task will be skipped later due to this, so we just setup