Module: check_mk
Branch: master
Commit: 1ada6b897ed10932979e00a66a43f836c10c8d18
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ada6b897ed109…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 2 15:33:48 2015 +0100
The host/service type icon can now be disabled by rule
---
web/plugins/views/painters.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index cbcb475..3b9cc21 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -227,7 +227,9 @@ def paint_type_icon(what, row):
if icon.get('type', 'icon') == 'type_icon':
try:
result = icon['paint'](what, row, tags, custom_vars)
- if result is not None:
+ if result == "":
+ break # Explicitly disabled. Don't show an icon
+ elif result is not None:
if type(result) in [str,unicode]:
result = result, what == 'service' and
row['service_description'] or row['host_name']