Module: check_mk
Branch: master
Commit: d9740fd358db998ae608c4803df1352a31f45bd4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d9740fd358db99…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Aug 11 13:50:34 2015 +0200
Allow missing uses_snmp info
---
web/htdocs/crash_reporting.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/crash_reporting.py b/web/htdocs/crash_reporting.py
index 6f6ee71..01048fa 100644
--- a/web/htdocs/crash_reporting.py
+++ b/web/htdocs/crash_reporting.py
@@ -287,7 +287,7 @@ def show_crashed_check_details(info):
html.write("<tr class=\"data odd0\"><td
class=\"left\">%s</td>" % _("Check Type"))
html.write("<td>%s</td></tr>" %
html.attrencode(details["check_type"]))
html.write("<tr class=\"data even0\"><td
class=\"left\">%s</td>" % _("Uses SNMP"))
- html.write("<td><pre>%s</pre></td></tr>" %
(details["uses_snmp"] and _("Yes") or _("No")))
+ html.write("<td><pre>%s</pre></td></tr>" %
(details.get("uses_snmp", False) and _("Yes") or _("No")))
html.write("<tr class=\"data odd0\"><td
class=\"left\">%s</td>" % _("Check Item"))
html.write("<td>%s</td></tr>" %
html.attrencode(details["item"]))
html.write("<tr class=\"data even0\"><td
class=\"left\">%s</td>" % _("Description"))