]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rgw: fix a typo in multisite
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 4 Feb 2021 16:45:05 +0000 (17:45 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Feb 2021 06:01:21 +0000 (07:01 +0100)
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 <gabrioux@redhat.com>
roles/ceph-rgw/tasks/multisite/main.yml

index e0308ba680a1da7d4d2b557a9263a646598b0ca2..86d454099684a41651cf9c9dab5de6d8f6b8eb86 100644 (file)
@@ -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: