From 94a71258a8ca60425a45a98e2f52f8ed0cdd71d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Knecht?= Date: Mon, 11 May 2020 16:21:55 +0200 Subject: [PATCH] ceph-validate: Expand templates in rgw_create_pools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same fix as `ceph-rgw` for `rgw_create_pools` pool names that contain Jinja templates. See #5348 for details. Signed-off-by: BenoƮt Knecht (cherry picked from commit 444b46ea24a71f0e719296abc677a975afa8ac7f) --- roles/ceph-validate/tasks/check_rgw_pools.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/ceph-validate/tasks/check_rgw_pools.yml b/roles/ceph-validate/tasks/check_rgw_pools.yml index 7f59046e3..a4f5412c7 100644 --- a/roles/ceph-validate/tasks/check_rgw_pools.yml +++ b/roles/ceph-validate/tasks/check_rgw_pools.yml @@ -2,7 +2,7 @@ - name: fail if ec_profile is not set for ec pools fail: msg: "ec_profile must be set for ec pools" - with_dict: "{{ rgw_create_pools }}" + loop: "{{ rgw_create_pools | dict2items }}" when: - item.value.type is defined - item.value.type == 'ec' @@ -11,7 +11,7 @@ - name: fail if ec_k is not set for ec pools fail: msg: "ec_k must be set for ec pools" - with_dict: "{{ rgw_create_pools }}" + loop: "{{ rgw_create_pools | dict2items }}" when: - item.value.type is defined - item.value.type == 'ec' @@ -20,7 +20,7 @@ - name: fail if ec_m is not set for ec pools fail: msg: "ec_m must be set for ec pools" - with_dict: "{{ rgw_create_pools }}" + loop: "{{ rgw_create_pools | dict2items }}" when: - item.value.type is defined - item.value.type == 'ec'