Werk #12090: zypper: crash with "IndexError (list index out of range)"

Component Checks & agents
Title zypper: crash with "IndexError (list index out of range)"
Date Mar 29, 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.0p2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

In case the zypper section is empty the check would crash due to an dedicated access to line 1. This change makes the check not access line 1 if not present.

To the list of all Werks