Module: check_mk
Branch: master
Commit: d5591bb757d5b7b302bed7a4e90dff86c96d04f8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d5591bb757d5b7…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Thu May 12 08:55:52 2016 +0200
fixed error message referring to missing host_in_passive_check_period column
---
web/plugins/icons/builtin.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/web/plugins/icons/builtin.py b/web/plugins/icons/builtin.py
index 3d58868..5a3445b 100644
--- a/web/plugins/icons/builtin.py
+++ b/web/plugins/icons/builtin.py
@@ -865,13 +865,14 @@ multisite_icons_and_actions['crashed_check'] = {
def paint_icon_check_period(what, row, tags, host_custom_vars):
- if row['%s_in_passive_check_period' % what] == 0\
- or row['%s_in_check_period' % what] == 0:
- return 'pause', _("This %s is currently not being checked") %
_(what)
+ if what == "service":
+ if row['%s_in_passive_check_period' % what] == 0\
+ or row['%s_in_check_period' % what] == 0:
+ return 'pause', _("This %s is currently not being checked")
% _(what)
multisite_icons_and_actions['check_period'] = {
- 'columns' : ['in_passive_check_period', 'in_check_period'],
+ 'service_columns' : ['in_passive_check_period',
'in_check_period'],
'paint' : paint_icon_check_period,
'toplevel' : True,
}