Skip to content

Commit dd0894e

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
sambacc: add nodes command to ctdb configuration if needed
Signed-off-by: John Mulligan <[email protected]>
1 parent 0586eb0 commit dd0894e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sambacc/ctdb.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ def _write_param(name: str, key: str) -> None:
128128
fh.write(enc("\n"))
129129
fh.write(enc("[cluster]\n"))
130130
_write_param("recovery lock", "recovery_lock")
131+
if ctdb_params.get("nodes_cmd"):
132+
nodes_cmd = ctdb_params["nodes_cmd"]
133+
fh.write(enc(f"nodes list = !{nodes_cmd}"))
131134
fh.write(enc("\n"))
132135
fh.write(enc("[legacy]\n"))
133136
_write_param("realtime scheduling", "realtime_scheduling")

0 commit comments

Comments
 (0)