Module: check_mk
Branch: master
Commit: c4eee21cdfabc0532ad802e7129aaafc57b721c9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c4eee21cdfabc0…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jun 5 10:57:42 2012 +0200
Fix possible bug when rulegroup has no help
---
web/htdocs/wato.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d73a59d..15cfd7e 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9242,9 +9242,10 @@ def mode_rulesets(phase):
if not only_host:
render_folder_path(keepvarnames = ["mode", "local",
"group"])
- help = "".join(help.split("\n", 1)[1:]).strip()
- if help:
- html.help(help)
+ if help != None:
+ help = "".join(help.split("\n", 1)[1:]).strip()
+ if help:
+ html.help(help)
if only_local and not only_host:
all_rulesets = {}