Skip to content

Commit

Permalink
First write site config then update core config
Browse files Browse the repository at this point in the history
Change-Id: Ia40532f1b578d226245e4925dc16c98eacca13e1
  • Loading branch information
LarsMichelsen committed Oct 4, 2024
1 parent c7d2871 commit e55bf6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omd/packages/omd/omdlib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2258,10 +2258,10 @@ def finalize_site_as_user(
# Run all hooks in order to setup things according to the
# configuration settings
config_set_all(site, ignored_hooks)
_update_cmk_core_config(site)
initialize_site_ca(site)
initialize_agent_ca(site)
save_site_conf(site)
_update_cmk_core_config(site)

if command_type in [CommandType.create, CommandType.copy, CommandType.restore_as_new_site]:
save_instance_id(file_path=get_instance_id_file_path(Path(site.dir)), instance_id=uuid4())
Expand Down

0 comments on commit e55bf6c

Please sign in to comment.