]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/mgr/devicehealth: do not crash if db not ready
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 31 May 2023 13:37:23 +0000 (09:37 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 27 Jun 2023 18:08:28 +0000 (14:08 -0400)
commitfa63652a8b943b545f68b10fef04834a1acc7018
tree45df310a3944b2502302dbfc0c5779d1860c7cc1
parent44e0807b3dda242da1adad81b9a6420a72a4f6a6
pybind/mgr/devicehealth: do not crash if db not ready

This is a remote method called by telemtry so the @CLIRequiresDB
decorator isn't appropriate.

Fixes: https://tracker.ceph.com/issues/56239
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 30570686cd73ff434e6ef41c2a5e1a5d3dd15e37)
src/pybind/mgr/devicehealth/module.py