Branch: refs/heads/2.2.0
Home:
https://github.com/tribe29/checkmk
Commit: c2939400db0caa369fa9ee7fc8804e3ae9fd9e1a
https://github.com/tribe29/checkmk/commit/c2939400db0caa369fa9ee7fc8804e3ae…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2023-04-08 (Sat, 08 Apr 2023)
Changed paths:
M cmk/post_rename_site/main.py
M cmk/utils/plugin_loader.py
A packages/cmk-agent-ctl/.vscode/settings.json
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): 3-rd attempt
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.
Change-Id: Ia325e955ff64c80ea6daee031427e9717b9fc84c
TESTS: manual `omd cp beta ceta` with check results