Module: check_mk
Branch: master
Commit: b6ab0ec8d6c9e604acf38bdb9371f1b3a51fe624
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b6ab0ec8d6c9e6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Nov 2 08:43:56 2011 +0100
WATO: fix problem with define_hostgroups
---
web/htdocs/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 5935911..ee37d06 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -4792,7 +4792,7 @@ def save_group_information(groups):
out.write("# Written by WATO\n# encoding: utf-8\n\n")
for what in [ "host", "service", "contact" ]:
if what in groups and len(groups[what]) > 0:
- out.write("if not define_%sgroups:\n define_%sgroups = {}\n" %
(what, what))
+ out.write("if type(define_%sgroups) != dict:\n define_%sgroups =
{}\n" % (what, what))
out.write("define_%sgroups.update(%s)\n\n" % (what,
pprint.pformat(groups[what])))