Module: check_mk
Branch: master
Commit: 49e408f6155a6db214866905617bcffa292b3624
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=49e408f6155a6d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Feb 24 09:59:35 2017 +0100
BI: Fixed exception in BI views when using site icons
Change-Id: I883e47dda8a43834982ad27aa80aebb6d6d55f39
---
web/plugins/views/painters.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index 90f134f..2fb1f19 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -489,13 +489,13 @@ multisite_painters["host_icons"] = {
# '----------------------------------------------------------------------'
def paint_site_icon(row):
- if row["site"] and config.use_siteicons:
+ if row.get("site") and config.use_siteicons:
return None, "<img class=siteicon
src=\"icons/site-%s-24.png\">" % row["site"]
else:
return None, ""
multisite_painters["site_icon"] = {
- "title" : _("Icon showing the site"),
+ "title" : _("Site icon"),
"short" : "",
"columns" : ["site"],
"paint" : paint_site_icon,