Module: check_mk
Branch: master
Commit: 05419d8b84bac6fd0ac95fc1257f542e95920de7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=05419d8b84bac6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Nov 23 20:29:51 2015 +0100
Fixed missing icon to WATO for hosts in root folder
---
web/plugins/icons/wato.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/plugins/icons/wato.py b/web/plugins/icons/wato.py
index adb47a8..2bcf61b 100644
--- a/web/plugins/icons/wato.py
+++ b/web/plugins/icons/wato.py
@@ -56,12 +56,13 @@ def paint_wato(what, row, tags, custom_vars):
return
wato_folder = wato_folder_from_filename(row["host_filename"])
- if wato_folder:
+ if wato_folder != None:
if what == "host":
return wato_link(wato_folder, row["site"],
row["host_name"], "edithost")
elif row["service_description"] in [ "Check_MK inventory",
"Check_MK Discovery" ]:
return wato_link(wato_folder, row["site"],
row["host_name"], "inventory")
+
multisite_icons_and_actions['wato'] = {
'host_columns' : [ "filename" ],
'paint' : paint_wato,