Werk #6456: IPMI Management board: Fixed "cmk -d" on hosts with enabled mgmt board

Component Core & setup
Title IPMI Management board: Fixed "cmk -d" on hosts with enabled mgmt board
Date Aug 28, 2018
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.6.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.5.0p3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

An exception occurred on hosts having IPMI management board enabled when executing "cmk -d [hostname]" on the console:

OMD[stable]:~$ cmk --debug -d ipmi-host
Traceback (most recent call last):
  File "/omd/sites/stable/bin/cmk", line 96, in <module>
    exit_status = modes.call(o, a, opts, args)
  File "/omd/sites/stable/lib/python/cmk_base/modes/__init__.py", line 80, in call
    return mode.handler_function(*handler_args)
  File "/omd/sites/stable/lib/python/cmk_base/modes/check_mk.py", line 366, in mode_dump_agent
    source_state, source_output, source_perfdata = source.get_summary_result()
  File "/omd/sites/stable/lib/python/cmk_base/data_sources/abstract.py", line 392, in get_summary_result
    return self._summary_result()
  File "/omd/sites/stable/lib/python/cmk_base/data_sources/ipmi.py", line 152, in _summary_result
    return 0, "Version: %s" % self._get_ipmi_version(), []
  File "/omd/sites/stable/lib/python/cmk_base/data_sources/ipmi.py", line 156, in _get_ipmi_version
    section = self._host_sections.sections.get("mgmt_ipmi_firmware")
AttributeError: 'NoneType' object has no attribute 'sections'

To the list of all Werks