Report notification successor from target action

This commit is contained in:
Lyncoln
2026-09-17 17:13:34 -04:00
parent 6f90b66700
commit 942457e48f
2 changed files with 25 additions and 2 deletions
+8
View File
@@ -50,6 +50,14 @@ runtime_state = {
result = plugin.notify_target(config, runtime_state, {})
require(result["ocf_rc"] == 0, "fresh target query failed")
require(result["target"] is True, "local demote target was not detected")
require(
result["target_node"] == "david-macbookpro",
"local target node was incorrect",
)
require(
result["successor_node"] == "david-prodesk",
"successor node was not reported",
)
print("matching_target accepted")
config["PACEMAKER_NODE_NAME"] = "david-eve"