Skip to content

Commit 08eb9d6

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
sambacc: simplify _cluster_meta_to_ctdb_nodes function
Signed-off-by: John Mulligan <[email protected]>
1 parent 36cad2d commit 08eb9d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sambacc/ctdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ def _cluster_meta_to_ctdb_nodes(nodes: list[dict]) -> list[str]:
497497
ctdb_nodes: list[str] = [""] * pnn_max
498498
for entry in nodes:
499499
pnn = entry["pnn"]
500-
expected_line = _entry_to_node(ctdb_nodes, entry)
501-
ctdb_nodes[pnn] = expected_line
500+
# overwrite the pnn indexed entry with expected value
501+
ctdb_nodes[pnn] = _entry_to_node(ctdb_nodes, entry)
502502
return ctdb_nodes
503503

504504

0 commit comments

Comments
 (0)