Werk #16888: mssql_availability_groups: Parsing of section failed

Component Checks & agents
Title mssql_availability_groups: Parsing of section failed
Date Jul 31, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0p32 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Provided with invalid lines parse_mssql_availability_groups() would crash with an exception

IndexError: list index out of range

Resulting in Parsing of section mssql_availability_groups error message in UI.

This change makes parse_mssql_availability_groups() resilient to those lines by just ignoring them.

To the list of all Werks