]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-osd: Fix crush_rules.yml in check mode
authorBenoît Knecht <bknecht@protonmail.ch>
Mon, 13 Dec 2021 13:41:23 +0000 (14:41 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 16 Feb 2022 08:50:24 +0000 (09:50 +0100)
commit9675e146ee4f4b6162adf6d5d5b995dafcbeafde
tree6f4e99385380e4e1a9d38f9aa75c8b1cb50d759f
parent54b400089cf5ca1d117200e7f15743f060034097
ceph-osd: Fix crush_rules.yml in check mode

Set a default value for `item.stdout` before passing it to `from_json()`. The
`when` condition doesn't prevent this template from being evaluated in check
mode, so it fails if `item.stdout` doesn't contain a valid JSON string.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit ef05e9a313ad232508440131b59f1ab832aaa46d)
roles/ceph-osd/tasks/crush_rules.yml