Module: check_mk
Branch: master
Commit: f85505fa6b1b13811d601effe31e53321b305093
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f85505fa6b1b13…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Aug 5 08:36:16 2015 +0200
Small code restructuring
---
web/htdocs/crash_reporting.py | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/crash_reporting.py b/web/htdocs/crash_reporting.py
index 60b4208..770521e 100644
--- a/web/htdocs/crash_reporting.py
+++ b/web/htdocs/crash_reporting.py
@@ -71,10 +71,7 @@ def page_crashed(what):
warn_about_local_files(info)
show_report_form(details)
show_crash_report(info)
- if info["crash_type"] == "check":
- show_crashed_check_details(info)
- else:
- show_gui_crash_details(info)
+ show_crash_report_details(info)
else:
report_url = mailto_url = html.makeuri([
("subject", "Check_MK Crash Report - " +
defaults.check_mk_version),
@@ -89,6 +86,13 @@ def page_crashed(what):
html.footer()
+def show_crash_report_details(info):
+ if info["crash_type"] == "check":
+ show_crashed_check_details(info)
+ else:
+ show_gui_crash_details(info)
+
+
def show_context_buttons(what):
if what == "check":
html.begin_context_buttons()