Module: check_mk
Branch: master
Commit: e1c005df5bf414f328f75c9264086b79ce667536
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e1c005df5bf414…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Sep 24 14:45:29 2018 +0200
BI configuration: WATO slave sites without user login now also receive BI configuration
changes
Change-Id: I4b2f0829279f7f75777200fa432ac6d6242d751f
---
.werks/6663 | 14 ++++++++++++++
cmk/gui/plugins/wato/bi.py | 3 ++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.werks/6663 b/.werks/6663
new file mode 100644
index 0000000..35d4982
--- /dev/null
+++ b/.werks/6663
@@ -0,0 +1,14 @@
+Title: BI configuration: WATO slave sites without user login now also receive BI
configuration changes
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1537792351
+
+If a WATO slave site had no direct login access configured, it also did not receive any
changes
+within the BI configuration. As a result, BI checks running on the slave site never
received
+configuration updates in time. This has been fixed.
+
diff --git a/cmk/gui/plugins/wato/bi.py b/cmk/gui/plugins/wato/bi.py
index f5007fb..acd3a9f 100644
--- a/cmk/gui/plugins/wato/bi.py
+++ b/cmk/gui/plugins/wato/bi.py
@@ -511,7 +511,8 @@ class ModeBI(WatoMode, BIManagement):
def _add_change(self, action_name, text):
- add_change(action_name, text, domains=[watolib.ConfigDomainGUI],
sites=config.get_login_sites())
+ site_ids = [site[0] for site in config.wato_slave_sites()] + [config.omd_site()]
+ add_change(action_name, text, domains=[watolib.ConfigDomainGUI], sites=site_ids)
# .--------------------------------------------------------------------.