ceph-rgw: Fix customize pool size "when" condition

In 3c31b19ab3, 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 3842aa1a30)
pull/4965/head
Benoît Knecht 2020-01-20 11:36:27 +01:00 committed by Dimitri Savineau
parent 1462423059
commit ff2a2bb870
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@
run_once: true run_once: true
register: result register: result
until: result is succeeded 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 - 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" command: "{{ container_exec_cmd }} ceph --connect-timeout 5 --cluster {{ cluster }} osd pool application enable {{ item.key }} rgw"