Module: check_mk
Branch: master
Commit: 83544c55783ab7e8c4ded4748b5decc20b979653
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=83544c55783ab7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Dec 2 18:51:43 2014 +0100
Fix correct datatype of column painters of event console
---
mkeventd/web/plugins/views/mkeventd.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mkeventd/web/plugins/views/mkeventd.py
b/mkeventd/web/plugins/views/mkeventd.py
index ee02ad2..f30494e 100644
--- a/mkeventd/web/plugins/views/mkeventd.py
+++ b/mkeventd/web/plugins/views/mkeventd.py
@@ -317,14 +317,14 @@ if mkeventd_enabled:
"title" : _("ID of the event"),
"short" : _("ID"),
"columns" : ["event_id"],
- "paint" : lambda row: ("number",
row["event_id"]),
+ "paint" : lambda row: ("number",
str(row["event_id"])),
}
multisite_painters["event_count"] = {
"title" : _("Count (number of recent occurrances)"),
"short" : _("Cnt."),
"columns" : ["event_count"],
- "paint" : lambda row: ("number",
row["event_count"]),
+ "paint" : lambda row: ("number",
str(row["event_count"])),
}
multisite_painters["event_text"] = {
@@ -361,7 +361,7 @@ if mkeventd_enabled:
try:
return "",
dict(config.mkeventd_service_levels)[row["event_sl"]]
except:
- return "", row["event_sl"]
+ return "", str(row["event_sl"])
multisite_painters["event_sl"] = {
"title" : _("Service-Level"),