mirror of
https://github.com/ceph/ceph
synced 2025-01-11 21:50:26 +00:00
pybind/mgr/dashboard: monkeypatch os.exit to stop cherrypy from taking down mgr
Fixes: http://tracker.ceph.com/issues/20216 Suggested-by: Tim Serong <tserong@suse.com> Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
1101661a2b
commit
c1c4a59db7
@ -43,6 +43,12 @@ log = logging.getLogger("dashboard")
|
||||
# python module for the convenience of the GUI?
|
||||
LOG_BUFFER_SIZE = 30
|
||||
|
||||
# cherrypy likes to sys.exit on error. don't let it take us down too!
|
||||
def os_exit_noop():
|
||||
pass
|
||||
|
||||
os._exit = os_exit_noop
|
||||
|
||||
|
||||
def recurse_refs(root, path):
|
||||
if isinstance(root, dict):
|
||||
|
Loading…
Reference in New Issue
Block a user