Module: check_mk
Branch: master
Commit: 4ac67ece10610d4bb6292695ae694347ce86d52e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4ac67ece10610d…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed May 13 15:13:45 2015 +0200
parameters of host/services: fixed exception when the icon image was set to None
---
web/plugins/wato/check_mk_configuration.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/wato/check_mk_configuration.py
b/web/plugins/wato/check_mk_configuration.py
index 44f3817..07951c1 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -2255,7 +2255,7 @@ register_rule(group,
and defaults.omd_root +
"/local/share/check_mk/web/htdocs/images/icons"
or defaults.web_dir + "/htdocs/images/icons" ),
),
- forth = lambda v: v.endswith('.png') and v[:-4] or v,
+ forth = lambda v: v and (v.endswith('.png') and v[:-4]) or v,
))
@@ -2270,7 +2270,7 @@ register_rule(group,
and defaults.omd_root +
"/local/share/check_mk/web/htdocs/images/icons"
or defaults.web_dir + "/htdocs/images/icons" ),
),
- forth = lambda v: v.endswith('.png') and v[:-4] or v,
+ forth = lambda v: v and (v.endswith('.png') and v[:-4]) or v,
),
itemtype = "service")