Werk #16365: baked_agents: Fix version displayed on agent files

Component Setup
Title baked_agents: Fix version displayed on agent files
Date Feb 8, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p22 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p40 Checkmk Enterprise (CEE), Checkmk MSP (CME)

Prior to this Werk, the running version of Checkmk was used to display the version of the agents. This caused that after updating Checkmk to a new version, the wrong version of the agents was displayed until they were baked again.

To fix this bug, the agent version is now displayed instead of the Checkmk version.

SUP-14846

To the list of all Werks