]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
mon: default ceph_health_raw to json
authorSébastien Han <seb@redhat.com>
Mon, 26 Nov 2018 10:08:27 +0000 (11:08 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 3 Dec 2018 13:39:43 +0000 (14:39 +0100)
commit8d4de44f5d4319f37680bfc0b0f5b6b5d99ee4e0
tree408dac9e9455da5452a04d3b7fbea00b6630bf0b
parentcfac79bec4e2d5e9a22f27b64e5a58398bb8900f
mon: default ceph_health_raw to json

During the first iteration, the command won't return anything, or can
simply fail and might not return a valid json structure. Ansible will
fail parsing it in the filter `from_json` so let's default that variable
to empty dictionary.

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-mon/tasks/ceph_keys.yml