Skip to content

Commit f3d87f1

Browse files
committed
Fix: Synchronize acknowledged werks to slave sites in distributed WATO setup
Signed-off-by: Sven Rueß <github@sven-ruess.de>
1 parent abdf5b2 commit f3d87f1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

cmk/gui/watolib/activate_changes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,14 @@ def register(replication_path_registry_: ReplicationPathRegistry) -> None:
270270
os.path.relpath(cmk.utils.paths.var_dir + "/packages", cmk.utils.paths.omd_root),
271271
[],
272272
),
273+
ReplicationPath(
274+
"file",
275+
"ack_werks",
276+
os.path.relpath(
277+
cmk.utils.paths.var_dir + "/acknowledged_werks.mk", cmk.utils.paths.omd_root
278+
),
279+
[],
280+
),
273281
ReplicationPath(
274282
"dir",
275283
"local",

tests/unit/cmk/gui/watolib/test_activate_changes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def _expected_replication_paths(edition: cmk_version.Edition) -> list[Replicatio
6666
"dir", "usersettings", "var/check_mk/web", ["report-thumbnails", "session_info.mk"]
6767
),
6868
ReplicationPath("dir", "mkps", "var/check_mk/packages", []),
69+
ReplicationPath("file", "ack_werks", "var/check_mk/acknowledged_werks.mk", []),
6970
ReplicationPath("dir", "local", "local", []),
7071
ReplicationPath(
7172
ty="file",

0 commit comments

Comments
 (0)