]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mds: add filter | int on condition stable-3.1
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 8 Apr 2021 11:27:31 +0000 (13:27 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 8 Apr 2021 11:29:31 +0000 (13:29 +0200)
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 <gabrioux@redhat.com>
roles/ceph-mds/tasks/create_mds_filesystems.yml

index b51c04f800cee3983c2a1aa8bfc4bba6791d609e..921f8824030cba18725c125eb4d8e3eb4ca58fea 100644 (file)
@@ -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