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
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.0.0p10 2.1.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

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