Module: check_mk
Branch: master
Commit: 6ffbbd102cef053fe4a8bb324a7a9c2bd54a4f1c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6ffbbd102cef05…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 16 15:08:17 2017 +0100
4370 FIX Distributed WATO: Remote site properties "WATO enabled" and
"Automatic sync" were not applied on slaves
Change-Id: I6fc34d0241aeb0fd0a0d5f37b8665f148dcc186c
---
.werks/4370 | 10 ++++++++++
web/htdocs/watolib.py | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/4370 b/.werks/4370
new file mode 100644
index 0000000..244e68b
--- /dev/null
+++ b/.werks/4370
@@ -0,0 +1,10 @@
+Title: Distributed WATO: Remote site properties "WATO enabled" and
"Automatic sync" were not applied on slaves
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.5.0i1
+Date: 1487254080
+
+
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 65e01d2..cab353d 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -3197,9 +3197,9 @@ def save_global_settings(vars, site_specific=False):
# The global setting wato_enabled is not registered in the configuration domains
# since the user must not change it directly. It is set by D-WATO on slave sites.
if "wato_enabled" in vars:
- per_domain.setdefault("multisite", {})["wato_enabled"] =
vars["wato_enabled"]
+ per_domain.setdefault(ConfigDomainGUI, {})["wato_enabled"] =
vars["wato_enabled"]
if "userdb_automatic_sync" in vars:
- per_domain.setdefault("multisite",
{})["userdb_automatic_sync"] = vars["userdb_automatic_sync"]
+ per_domain.setdefault(ConfigDomainGUI, {})["userdb_automatic_sync"] =
vars["userdb_automatic_sync"]
for domain in ConfigDomain.enabled_domains():
if site_specific: