Module: check_mk
Branch: master
Commit: 6009ea03f72e2f5b639819e08cb7b97c1a63df14
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6009ea03f72e2f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Apr 13 08:58:53 2017 +0200
CME: Added warning message when assigning sites to customers that have no users
Change-Id: I8e6aaac32f11e2e6f2d91733f72f2b4d0d4d3a02
---
web/htdocs/wato.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 77f980b..42683c7 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9632,7 +9632,7 @@ class ModeEditSite(ModeSites):
if not re.match("^[-a-z0-9A-Z_]+$", self._id):
raise MKUserError("id", _("The site id must consist only of
letters, digit and the underscore."))
- self._set_site_attributes()
+ detail_msg = self._set_site_attributes()
configured_sites[self._id] = self._new_site
save_sites(configured_sites)
@@ -9653,7 +9653,7 @@ class ModeEditSite(ModeSites):
# On central site issue a change only affecting the GUI
add_change("edit-sites", msg, sites=[config.omd_site()],
domains=[ConfigDomainGUI])
- return "sites"
+ return "sites", detail_msg
def _set_site_attributes(self):