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

Komponente Checks & agents
Titel mk_apt: Check crashes on single-line agent sections
Datum 31.03.2022
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
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.

Zur Liste aller Werks