From dd204d9e2f265f4559d73a51e06d3d69f5929a8f Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 4 Feb 2021 17:45:05 +0100 Subject: [PATCH] rgw: fix a typo in multisite if `rgw_zonegroupmaster` is not defined at the rgw instance level in `rgw_instances` it will fallback to a wrong variable (`rgw_zonemaster`). Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1925247 Signed-off-by: Guillaume Abrioux (cherry picked from commit 931b87e83044936648172c37ff961fee3d660c14) --- roles/ceph-rgw/tasks/multisite/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-rgw/tasks/multisite/main.yml b/roles/ceph-rgw/tasks/multisite/main.yml index e0308ba68..86d454099 100644 --- a/roles/ceph-rgw/tasks/multisite/main.yml +++ b/roles/ceph-rgw/tasks/multisite/main.yml @@ -11,7 +11,7 @@ zonegroups: "{{ zonegroups | default([]) | union([{ 'realm': item.rgw_realm, 'zonegroup': item.rgw_zonegroup, 'is_master': item.rgw_zonegroupmaster | default(hostvars[item.host]['rgw_zonegroupmaster']) }]) }}" run_once: true loop: "{{ rgw_instances_all }}" - when: item.rgw_zonegroupmaster | default(hostvars[item.host]['rgw_zonemaster']) | bool + when: item.rgw_zonegroupmaster | default(hostvars[item.host]['rgw_zonegroupmaster']) | bool - name: create list zones set_fact: -- 2.47.3