Module: check_mk
Branch: master
Commit: fb0d9ff62c70549b851cd6e98a217351f7786a98
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fb0d9ff62c7054…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 4 07:50:03 2017 +0200
Fix an issue with if check family after check file separation
Change-Id: I88b3f511cd6b28994e26fb0975371346c86475c2
---
cmk_base/checks.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/cmk_base/checks.py b/cmk_base/checks.py
index 5ed07d4..ba0e41b 100644
--- a/cmk_base/checks.py
+++ b/cmk_base/checks.py
@@ -156,6 +156,13 @@ def load_checks(filelist):
else:
context_ident_list += new_checks
+ # Hack to make dependencies between multiple includes work. In case we
+ # need more here we need to find another solution.
+ # TODO(lm): This needs to be cleaned up. Try to move the includes to
+ # python modules that are separated from each other and can refer to
+ # each other.
+
_include_contexts["if64.include"].update(_include_contexts["if.include"])
+
config.add_check_variables(check_variable_defaults)
# Now convert check_info to new format.