Werk #17217: emc_vplex_cpu: Fix TypeError ('generator' object is not subscriptable)

Component Checks & agents
Title emc_vplex_cpu: Fix TypeError ('generator' object is not subscriptable)
Date Dec 9, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p23 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Previously, the plugin emc_vplex_cpu would crash with the error

  File "/omd/sites/v230p22/lib/python3/cmk/base/api/agent_based/register/check_plugins_legacy.py", line 132, in check_result_generator
    if "\n" in subresult[1]:
TypeError ('generator' object is not subscriptable)

With this Werk, the crash is fixed.

To the list of all Werks