Module: check_mk
Branch: master
Commit: 9e3d120aa2bfc0c3eff87250c74909e63d8efefe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9e3d120aa2bfc0…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 10 15:01:25 2012 +0100
WATO: fix detection of preferred peer
---
web/htdocs/wato.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index af72f16..a91b157 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6244,6 +6244,9 @@ def preferred_peer():
best_peer = None
best_working_peer = None
for site_id, site in config.allsites().items():
+ if site.get("replication") == "slave":
+ continue # Ignore slave sites
+
if site_is_local(site_id):
if best_peer == None or site_id < best_peer["id"]:
best_peer = site