Module: check_mk
Branch: master
Commit: 48b95edab6917d288a0de43e70852def2dd68bd3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=48b95edab6917d…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Mar 21 15:05:32 2014 +0100
Wato: Fixed matching of @all in rule_matches_host_and_item()
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 10d10c1..97cac3e 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -13116,7 +13116,7 @@ def rule_matches_host_and_item(rulespec, tag_specs, host_list,
item_list,
regex_match = False
for check_host in host_list:
- if hostname == check_host:
+ if check_host == "@all" or hostname == check_host:
hostname_match = True
break
else: