]> git.apps.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>
Mon, 7 Feb 2022 13:13:19 +0000 (14:13 +0100)
commitef05e9a313ad232508440131b59f1ab832aaa46d
tree3b9c6dfd405988726135514807cea464ba8b1888
parent0b3a608216708e8005ed4fc34122f0fc61d0d459
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>
roles/ceph-osd/tasks/crush_rules.yml