Module: check_mk
Branch: master
Commit: 95e10265d355b6bb2ec952fc72722b76a1fd41bd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=95e10265d355b6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 10 09:39:25 2017 +0100
5434 FIX Views: Fixed exception when trying to display downtime IDs in views
Change-Id: I51ac1315da51aa2270361de4a54ace095c529e68
---
.werks/5434 | 11 +++++++++++
web/plugins/views/painters.py | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/5434 b/.werks/5434
new file mode 100644
index 0000000..0116c0c
--- /dev/null
+++ b/.werks/5434
@@ -0,0 +1,11 @@
+Title: Views: Fixed exception when trying to display downtime IDs in views
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1510303145
+
+
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index 4dea4aa..a01ac8b 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -2121,7 +2121,7 @@ multisite_painters["downtime_id"] = {
"title" : _("Downtime id"),
"short" : _("ID"),
"columns" : ["downtime_id"],
- "paint" : lambda row: (None, row["downtime_id"]),
+ "paint" : lambda row: (None, "%d" %
row["downtime_id"]),
}
multisite_painters["downtime_author"] = {