Werk #14617: check_uniserv: running the active check results in exception "TypeError: a bytes-like object is required, not 'str'"

Component Checks & agents
Title check_uniserv: running the active check results in exception "TypeError: a bytes-like object is required, not 'str'"
Date Jan 17, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p21 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

check_uniserv implementation didn't encode the close command resulting in an exception TypeError: a bytes-like object is required, not 'str' being raised. This change adds the missing encoding among some general modernization.

To the list of all Werks