Werk #18153: MKP tool: Fix IndexError: tuple index out of range

Component Checks & agents
Title MKP tool: Fix IndexError: tuple index out of range
Date Sep 4, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p12
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Previously, trying to package a file with mkp package <template> could result in the following crash:

  File "/omd/sites/v240p8/lib/python3.12/site-packages/cmk/mkp_tool/_parts.py", line 193, in permissions
    if rel_path.parts[-2] == "libexec"
IndexError: tuple index out of range

To the list of all Werks