]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-rgw: Fix customize pool size "when" condition
authorBenoît Knecht <bknecht@protonmail.ch>
Mon, 20 Jan 2020 10:36:27 +0000 (11:36 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 20 Jan 2020 17:48:19 +0000 (12:48 -0500)
In 3c31b19ab39f297635c84edb9e8a5de6c2da7707, I fixed the `customize pool
size` task by replacing `item.size` with `item.value.size`. However, I
missed the same issue in the `when` condition.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit 3842aa1a30277b5ea3acf78ac1aef37bad5afb14)

roles/ceph-rgw/tasks/main.yml

index 65d0dccd5ba3b7bfcfe3b272b194578648d0b24b..55351058fe91825edc27c655b718c95b87ee19a7 100644 (file)
@@ -42,7 +42,7 @@
       run_once: true
       register: result
       until: result is succeeded
-      when: item.size | default(osd_pool_default_size) != ceph_osd_pool_default_size
+      when: item.value.size | default(osd_pool_default_size) != ceph_osd_pool_default_size
 
     - name: set the rgw_create_pools pools application to rgw
       command: "{{ container_exec_cmd }} ceph --connect-timeout 5 --cluster {{ cluster }} osd pool application enable {{ item.key }} rgw"