Module: check_mk
Branch: master
Commit: 2c7b8ae5e31a75c601a887ae84107ccff24b4f97
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2c7b8ae5e31a75…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 18 15:35:22 2012 +0100
FIX: Writing single host_contactgroups rules for each selected
contactgroup in host edit dialog
---
ChangeLog | 2 ++
web/htdocs/wato.py | 5 ++++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index aa25f7e..fa96d20 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -58,6 +58,8 @@
* FIX: Fixed missing folders in "move to" dropdown fields
* FIX: Fixed "move to target folders" after CSV import
* FIX: Fixed problem with duplicate extra_buttons when using the i18n of multiisite
+ * FIX: Writing single host_contactgroups rules for each selected
+ contactgroup in host edit dialog
BI:
* improve doc/treasures/check_bi_local.py: local check that creates
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 08cd83a..8be9137 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -624,7 +624,10 @@ def save_hosts(folder = None):
if "contactgroups" in host:
use, cgs = host["contactgroups"]
if use and cgs:
- out.write("\nhost_contactgroups.append(( %r, [%r] ))\n" % (cgs,
hostname))
+ out.write("\nhost_contactgroups += [\n")
+ for cg in cgs:
+ out.write(' ( %r, [%r] )\n' % (cg, hostname))
+ out.write(']\n\n')
for attr, topic in host_attributes:
attrname = attr.name()