Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: a025068b727e0dd19cc70117919630744471995a
https://github.com/tribe29/checkmk/commit/a025068b727e0dd19cc70117919630744…
Author: Sergey Kipnis <sergey.kipnis(a)tribe29.com>
Date: 2023-04-09 (Sun, 09 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: I66eb226ecbf662d46dab88eb138927aefa984453
TESTS: manual `omd cp beta ceta` with check results