Use loop_control.loop_var directly

6eefc11c converted task.loop_control into an object, but while the other
callers were updated to use .loop_var instead of .get('loop_var'), this
site was overlooked.

This can be reproduced by including with loop_control a file that does
set_fact; a simple regression test along these lines is included.
This commit is contained in:
Abhijit Menon-Sen
2016-07-01 06:23:57 +05:30
parent 9b7d782abb
commit 950cc26aab
4 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
---
- hosts: localhost
tasks:
- include: test_includes4.yml
with_items: ["a"]
loop_control:
loop_var: r