Module: check_mk
Branch: master
Commit: 7f68c468ccfae9337fe7f6c3b28f293d496aa972
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7f68c468ccfae9…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Dec 14 10:15:41 2016 +0100
BI Aggregation: Added minor speedup in leaf node compilation
Change-Id: Ie7b8f2af39e174b58ea868bd1693e47757ffe718
---
web/htdocs/bi.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 45d938e..b4603e0 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -958,6 +958,10 @@ def match_host(hostname, hostalias, host_spec, tags, required_tags,
site, honor_
def compile_leaf_node(host_re, service_re = config.HOST_STATE):
found = []
+
+ if host_re == "$1$":
+ return found
+
honor_site = SITE_SEP in host_re
if not honor_site and not '*' in host_re and not '$' in host_re \
and not '|' in host_re and '[' not in host_re: