From: Guillaume Abrioux Date: Thu, 8 Apr 2021 11:27:31 +0000 (+0200) Subject: mds: add filter | int on condition X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Fstable-3.1;p=ceph-ansible.git mds: add filter | int on condition This seems to break the update scenario CI testing in stable-3.2. Typical error: ``` The conditional check 'mds_max_mds > 1' failed. The error was: Unexpected templating type error occurred on ({% if mds_max_mds > 1 %} True {% else %} False {% endif %}): '>' not supported between instances of 'str' and 'int' ``` Signed-off-by: Guillaume Abrioux --- diff --git a/roles/ceph-mds/tasks/create_mds_filesystems.yml b/roles/ceph-mds/tasks/create_mds_filesystems.yml index b51c04f80..921f88240 100644 --- a/roles/ceph-mds/tasks/create_mds_filesystems.yml +++ b/roles/ceph-mds/tasks/create_mds_filesystems.yml @@ -44,4 +44,4 @@ delegate_to: "{{ groups[mon_group_name][0] }}" when: - ceph_release_num[ceph_release] >= ceph_release_num.jewel - - mds_max_mds > 1 + - mds_max_mds | int > 1