Module: check_mk
Branch: master
Commit: 2be87dd23acaf3045c460ce47ee03ec3bbb678bf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2be87dd23acaf3…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed May 2 21:18:56 2012 +0200
WATO: bugfix create_distributed_wato_file. no longer puts random
sites into distributed_wato.mk
---
web/htdocs/wato.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 9605bc8..4aef34c 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6561,7 +6561,8 @@ def update_distributed_wato_file(sites):
for siteid, site in sites.items():
if site.get("replication"):
distributed = True
- create_distributed_wato_file(siteid, site.get("replication"))
+ if site_is_local(siteid):
+ create_distributed_wato_file(siteid, site.get("replication"))
if not distributed:
delete_distributed_wato_file()