Werk #7970: Fix possible AttributeError "function" has no attribute "get" exception during checking

Komponente Core & setup
Titel Fix possible AttributeError "function" has no attribute "get" exception during checking
Datum 10.07.2019
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.0.0i1 Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b4 Checkmk Enterprise (CEE), Checkmk MSP (CME)

In the moment a check timeout occured while checking a host when using the Microcore an exception like this could occur in all previous 1.6 releases:

An exception occured while processing host "beta"
Traceback (most recent call last):
  File "/omd/sites/beta/lib/python/cmk_base/cee/keepalive.py", line 331, in do_keepalive
    exit_code = host_config.exit_code_spec.get("timeout", 2)
AttributeError: 'function' object has no attribute 'get'

Zur Liste aller Werks