]> 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:53 +0000 (09:50 +0100)
commit3ba0e4bdca4f3b549446472fb9c362b0ac105839
treee12f56bec789a778b7fe19c595c23e0b70c7c940
parent9df27fc5c51e70a8f4aa0556dbde312fae5054d2
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