Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: cac8527f807714b08aceb6698b62ead9703058f5
https://github.com/tribe29/checkmk/commit/cac8527f807714b08aceb6698b62ead97…
Author: Frans Fürst <frans.fuerst(a)tribe29.com>
Date: 2021-09-10 (Fri, 10 Sep 2021)
Changed paths:
A .werks/13251
M checks/netapp_api_temp
A tests/unit/cmk/base/plugins/agent_based/test_netapp_api_temp.py
Log Message:
-----------
13251 FIX netapp_api_temp: crash on access to non-existing key
'temp-sensor-current-temperature'
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.
Change-Id: I96db7c3789631d2241b6b132c3d656dbee14fe19