Skip to content

Commit e68f7dc

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
sambacc: add missing newline in generated ctdb.conf
This was working because we had a newline before the next section header but this can break if you insert a new param after the 'nodes list' param. I found it when prototyping something I am not going to use after all, but the fix here is still worthwhile. Signed-off-by: John Mulligan <[email protected]>
1 parent 2f89a38 commit e68f7dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sambacc/ctdb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def _write_param(name: str, key: str) -> None:
133133
if ctdb_params.get("nodes_cmd"):
134134
nodes_cmd = ctdb_params["nodes_cmd"]
135135
fh.write(enc(f"nodes list = !{nodes_cmd}"))
136+
fh.write(enc("\n"))
136137
fh.write(enc("\n"))
137138
fh.write(enc("[legacy]\n"))
138139
_write_param("realtime scheduling", "realtime_scheduling")

0 commit comments

Comments
 (0)