Use loop_var name in when clause

The name of the loop_var should be used instead of 'item' in when
clauses.

Change-Id: I8beb383f6c20425ff3bba541de37249a02364b3e
This commit is contained in:
Jimmy McCrory 2018-10-18 10:26:23 -07:00
parent 4b1635d477
commit 829d3f5f01

View File

@ -51,8 +51,8 @@
loop_control:
loop_var: backend_name
when:
- "item in group_names"
- "groups[item] | length > 1"
- "backend_name in group_names"
- "groups[backend_name] | length > 1"
with_items:
- "nova_api_metadata"
- "nova_api_os_compute"
@ -182,8 +182,8 @@
loop_control:
loop_var: backend_name
when:
- "item in group_names"
- "groups[item] | length > 1"
- "backend_name in group_names"
- "groups[backend_name] | length > 1"
with_items:
- "nova_api_metadata"
- "nova_api_os_compute"