Module: check_mk
Branch: master
Commit: 9682a33e0fda189eac609af623a14ce06de448d9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9682a33e0fda18…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 10 10:33:37 2011 +0100
WATO: Fixed only_hosts rule generated in distributed mode
---
web/htdocs/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 0741b3b..d202562 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -6859,7 +6859,7 @@ def create_only_hosts_file(siteid):
"# push the configuration to us. It makes sure that\n"
"# we only monitor hosts that are assigned to our site.\n\n")
out.write("if only_hosts == None:\n only_hosts = []\n\n")
- out.write("only_hosts += [( ['site:%s'], ALL_HOSTS )]\n" % siteid)
+ out.write("only_hosts += [(NEGATE, ['!site:%s'], ALL_HOSTS )]\n" %
siteid)
def delete_only_hosts_file():
p = defaults.check_mk_configdir + "/only_hosts.mk"