Module: check_mk
Branch: master
Commit: 54d172cbcbe526ae5ae2f4f9c74ecec4506b6915
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=54d172cbcbe526…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Apr 15 16:57:21 2015 +0200
Fixed exception in shortly added icons and actions code when ps checks are not configured
with dict params
---
modules/check_mk.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index a89e404..0a3bbf5 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1530,7 +1530,7 @@ def icons_and_actions_of(what, hostname, svcdesc = None, checkname =
None, param
# Some WATO rules might register icons on their own
checkgroup = checkgroup_of.get(checkname, checkname)
- if checkgroup in [ 'ps', 'services' ]:
+ if checkgroup in [ 'ps', 'services' ] and type(params) == dict:
icon = params.get('icon')
if icon:
actions.add(icon)