Module: check_mk
Branch: master
Commit: 74af0ecc4a3e9f26b1df1e4a29447d8e38d186f8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=74af0ecc4a3e9f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 8 09:53:17 2017 +0100
4328 FIX EC archive: Fixed exception in "line number column" of event detail
page
The error "Type Error: html.write accepts str and unicode input object only"
has
been fixed.
Change-Id: I0fba63200f84e141a51cf8561cfa47a08380b5a0
---
.werks/4328 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/views/mkeventd.py | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4328 b/.werks/4328
new file mode 100644
index 0000000..1ef2b1b
--- /dev/null
+++ b/.werks/4328
@@ -0,0 +1,10 @@
+Title: EC archive: Fixed exception in "line number column" of event detail
page
+Level: 1
+Component: ec
+Compatible: compat
+Version: 1.4.0i4
+Date: 1486543924
+Class: fix
+
+The error "Type Error: html.write accepts str and unicode input object only"
has
+been fixed.
diff --git a/ChangeLog b/ChangeLog
index 5b8fd13..94b3736 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -169,6 +169,7 @@
* 4312 FIX: Counting events are now also respecting the EC limits
* 4314 FIX: Quick event delete icon works with checkboxes enabled now
* 4322 FIX: Activate changes: Fixed exception when having EC changes and core changes
while core produces a warning
+ * 4328 FIX: EC archive: Fixed exception in "line number column" of event
detail page...
HW/SW-Inventory:
* 4188 snmp_extended_info: Now capable to inventorize cisco backplane chassis...
diff --git a/web/plugins/views/mkeventd.py b/web/plugins/views/mkeventd.py
index 48e4935..591f0a5 100644
--- a/web/plugins/views/mkeventd.py
+++ b/web/plugins/views/mkeventd.py
@@ -369,7 +369,7 @@ if mkeventd_enabled:
"title" : _("Line number in log file"),
"short" : _("Line"),
"columns" : ["history_line" ],
- "paint" : lambda row: ("number",
row["history_line"]),
+ "paint" : lambda row: ("number", "%s" %
row["history_line"]),
}
multisite_painters["history_time"] = {