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:
Jimmy McCrory 2018-10-18 10:26:23 -07:00 committed by Jesse Pretorius (odyssey4me)
parent 99526d91fc
commit 90bf00425e
1 changed files with 4 additions and 4 deletions

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"