Module: check_mk
Branch: master
Commit: 57c8ad2e132809c368925bf0658737ebeca3f793
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=57c8ad2e132809…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Apr 24 00:07:12 2012 +0200
WATO: distributed wato slaves now preserve SiteAttribute host tag
---
web/htdocs/wato.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 57a5725..680210e 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -638,6 +638,10 @@ def save_hosts(folder = None):
value = effective.get(attr.name())
tags.update(attr.get_tag_list(value))
+ # Slave sites preserve any SiteAttribute tag
+ if not is_distributed() and "site" in effective:
+ tags.update(SiteAttribute().get_tag_list(effective["site"]))
+
tagstext = "|".join(list(tags))
if tagstext:
tagstext += "|"