Module: check_mk
Branch: master
Commit: 24be04f40ecf6809e9552d0d6ec4fb2333acd4c6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=24be04f40ecf68…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 11 17:22:11 2017 +0100
Ignoring includes key during check_info attribute check
Change-Id: I46547bdb93b270806d20a0f1e67b0006b2800efc
---
modules/check_mk_base.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 4cb5980..8dadcef 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1659,7 +1659,7 @@ def convert_check_info():
else:
# Ensure that there are only the known keys set. Is meant to detect typos
etc.
for key in info.keys():
- if key not in check_info_defaults:
+ if key != "includes" and key not in check_info_defaults:
raise MKGeneralException("The check '%s' declares an
unexpected key '%s' in 'check_info'." %
(check_type, key))