]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/devicehealth: ensure we don't store empty objects
authorSage Weil <sage@redhat.com>
Thu, 7 Nov 2019 22:35:19 +0000 (16:35 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Nov 2019 22:35:19 +0000 (16:35 -0600)
commit82414b3a42258b09defe2a88bc937a096439534f
treef3b953600941b414b10d0810eba5418ec1c9ca76
parent5e8870da8fba8ee01ac78756f88651841c680a55
mgr/devicehealth: ensure we don't store empty objects

I'm not sure why devid would end up empty, but it is possible if we get
wonky data, and users seem to have seen empty objects in their pools,
so add a check!

Maybe-fixes: https://tracker.ceph.com/issues/41383
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/devicehealth/module.py