From 90bf00425ee6926ebd99e10daa6a753f7ce8ad9d Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Thu, 18 Oct 2018 10:26:23 -0700 Subject: [PATCH] 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 829d3f5f01578defdc292a640e0be4c299ac2889) --- playbooks/common-playbooks/nova.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/playbooks/common-playbooks/nova.yml b/playbooks/common-playbooks/nova.yml index d8660e899d..94074407d7 100644 --- a/playbooks/common-playbooks/nova.yml +++ b/playbooks/common-playbooks/nova.yml @@ -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"