Module: check_mk
Branch: master
Commit: a034064b5d72abca33798eefe8edb9c60954b811
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a034064b5d72ab…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 24 17:29:11 2016 +0100
Moved hosttag initialization call to more abstract helper function
---
modules/check_mk.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 7df2e00..ed2ba6a 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -4253,7 +4253,7 @@ def read_config_files(with_conf_d=True, validate_hosts=True):
else:
interactive_abort("Cannot read in configuration file %s: %s" %
(_f, e))
- collect_hosttags()
+ initialize_config_caches()
global service_service_levels, host_service_levels
service_service_levels = extra_service_conf.get("_ec_sl", [])
@@ -4333,6 +4333,10 @@ def read_config_files(with_conf_d=True, validate_hosts=True):
sys.exit(1)
+def initialize_config_caches():
+ collect_hosttags()
+
+
def initialize_check_caches():
single_host_checks = cmk_base.config_cache.get_dict("single_host_checks")
multi_host_checks = cmk_base.config_cache.get_list("multi_host_checks")