Werk #13677: mk_apt: Check crashes on single-line agent sections

Component Checks & agents
Title mk_apt: Check crashes on single-line agent sections
Date Mar 31, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0b5 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p23 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

This fixes a regression that got introduced with Werk #13578.

While the above mentioned Werk fixed an issue with ignored security updates for the "APT normal and security updates" plugin, it made a wrong assumption to the output of the underlying apt-get command, that lead to a crash for outputs that exactly consist of one security update item.

To the list of all Werks