Module: check_mk
Branch: master
Commit: 925e38a94b0c967c8acb1890d2d931a6f3947f3f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=925e38a94b0c96…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon Jan 29 16:52:09 2018 +0100
Fixed TypeError
Change-Id: I87d16778d332da37329263281e22d85b7a0c1faf
---
cmk_base/checks.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cmk_base/checks.py b/cmk_base/checks.py
index e0c9104..12668b6 100644
--- a/cmk_base/checks.py
+++ b/cmk_base/checks.py
@@ -616,6 +616,8 @@ def get_management_board_precedence(check_plugin_name):
def do_status_data_inventory_for(hostname):
rules = config.active_checks.get('cmk_inv')
+ if rules is None:
+ return False
# 'host_extra_conf' is already cached thus we can
# use it after every check cycle.
params = rulesets.host_extra_conf(hostname, rules)