Branch: refs/heads/2.2.0
Home:
https://github.com/tribe29/checkmk
Commit: 05905fb5ecbefc08dfbc34a8e8d696fcf6fcf04a
https://github.com/tribe29/checkmk/commit/05905fb5ecbefc08dfbc34a8e8d696fcf…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2023-04-05 (Wed, 05 Apr 2023)
Changed paths:
M cmk/post_rename_site/main.py
M cmk/utils/plugin_loader.py
A tests/unit/cmk/post_rename_site/test_load_plugins.py
M tests/unit/cmk/post_rename_site/test_main.py
Log Message:
-----------
fix site name after site copy(rename)
BACKGROUND. We store our main site name as a literal
string in the `rules.mk` as a parameter for CCE agent
controller connection. After cp/mv the main site name
is changed but not the string the rules.mk
This CL fixes the problem by loading existing rule sets
and changing values for all entries ["connection"]["site"]
in "agent_config:agent_controller_connections" from old
Site Id to new Site Id.
TESTS: manual `omd cp beta ceta` with check results.
Correct for raw eidtion too
Change-Id: I7b23b38fc54dc21f7c29ffa24a74d41e497bcefe