Werk #18055: update_config: Prevent error in prediction_files_cleanup due to ".info" suffix in hostname

Component Checks & agents
Title update_config: Prevent error in prediction_files_cleanup due to ".info" suffix in hostname
Date Jun 2, 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.0p3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p34 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

If predictive levels were configured in a rule and a host had a ".info" suffix, an IsADirectoryError exception was raised during the update process.

While walking through the file system, the update config action mistook the host directory for a data file of the predictive levels feature and tried to read from it. This is now fixed.

To the list of all Werks