]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: handle JSONDecodeError in the serve loop
authorMichael Fritch <mfritch@suse.com>
Wed, 4 Nov 2020 18:12:34 +0000 (11:12 -0700)
committerSebastian Wagner <sebastian.wagner@suse.com>
Thu, 7 Jan 2021 12:02:21 +0000 (13:02 +0100)
commit6d9d8b28ae669604f8b91eab1a81e02d09cc93b7
treeffc1f7b5592a14428cca81b13816a0de559c08fa
parent4805acd7ebe9613faae20a0af3f65b506e6e296a
mgr/cephadm: handle JSONDecodeError in the serve loop

avoid exceptions when attempting to parse invalid JSON output as this
will later cause the cephadm module to fail with a MGR_MODULE_ERROR err

Fixes: https://tracker.ceph.com/issues/48118
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 6d759fb5deac0c52b3c738a2e695738228749420)
src/pybind/mgr/cephadm/serve.py