]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/snap_schedule: catch all exceptions for cli 49295/head
authorMilind Changire <mchangir@redhat.com>
Wed, 26 Apr 2023 07:04:10 +0000 (12:34 +0530)
committerMilind Changire <mchangir@redhat.com>
Wed, 26 Apr 2023 07:04:10 +0000 (12:34 +0530)
commit651fb2e3b515c80e9dc4a24638c9d1a0d487c729
tree46c3cfb96cae4323fdd13837462c43479e6f6aac
parent23183260c5da251698b083bc9866c22a17af5ec8
mgr/snap_schedule: catch all exceptions for cli

Any unknown exception causes the module to be unloaded and unresponsive.
So, it'll be ideal to catch all exceptions during command-line interaction
and report them instead of crashing with a traceback.

Fixes: https://tracker.ceph.com/issues/58195
Signed-off-by: Milind Changire <mchangir@redhat.com>
src/pybind/mgr/snap_schedule/module.py