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
(cherry picked from commit 829d3f5f01
)
This commit is contained in:
parent
99526d91fc
commit
90bf00425e
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue