Module: check_mk
Branch: master
Commit: 55dfe9bd0c0528db19904026226223778065da9f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=55dfe9bd0c0528…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 13 15:14:32 2012 +0200
FIX: Fixed monitoring of slave hosts in master site in case of special
distributed wato configurations
---
web/htdocs/wato.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ea70a48..996a4be 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6756,8 +6756,8 @@ def save_sites(sites):
out = create_user_file(sites_mk, "w")
out.write("# Written by WATO\n# encoding: utf-8\n\n")
out.write("sites = \\\n%s\n" % pprint.pformat(sites))
- update_distributed_wato_file(sites)
config.load_config() # make new site configuration active
+ update_distributed_wato_file(sites)
declare_site_attribute()
rewrite_config_files_below(g_root_folder) # fix site attributes
need_sidebar_reload()
@@ -6784,7 +6784,7 @@ def update_distributed_wato_file(sites):
# Remove the distributed wato file
# a) If there is no distributed WATO setup
# b) If the local site could not be gathered
- if not distributed or not found_local:
+ if not distributed: # or not found_local:
delete_distributed_wato_file()
#.