Werk #13251: netapp_api_temp: crash on access to non-existing key 'temp-sensor-current-temperature'

Component Checks & agents
Title netapp_api_temp: crash on access to non-existing key 'temp-sensor-current-temperature'
Date Sep 9, 2021
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.1.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p10 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

The check function assumes there's a key 'temp-sensor-current-temperature' for every netapp_api_temp section element and runs into a KeyError if that isn't the case. This change preprocesses all entries in a way that only valid entries containing 'temp-sensor-current-temperature' will be processed.

To the list of all Werks