From: Benoît Knecht Date: Mon, 20 Jan 2020 10:36:27 +0000 (+0100) Subject: ceph-rgw: Fix customize pool size "when" condition X-Git-Tag: v4.0.11~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ff2a2bb870b9d054459a4e25650a74675e598ae1;p=ceph-ansible.git ceph-rgw: Fix customize pool size "when" condition 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 (cherry picked from commit 3842aa1a30277b5ea3acf78ac1aef37bad5afb14) --- diff --git a/roles/ceph-rgw/tasks/main.yml b/roles/ceph-rgw/tasks/main.yml index 65d0dccd5..55351058f 100644 --- a/roles/ceph-rgw/tasks/main.yml +++ b/roles/ceph-rgw/tasks/main.yml @@ -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"