Skip to content

Commit 460fec8

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
sambacc: rename function to manage_cluster_meta_updates
Rename a function to manage_cluster_meta_updates to better match what it does. A future change will want to use the word "monitor" for something else and it would be confusing to continue calling this a "monitor" function vs "manage -- and this function is the more active "participant" of the two. Signed-off-by: John Mulligan <[email protected]>
1 parent aef8730 commit 460fec8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sambacc/commands/ctdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def ctdb_manage_nodes(ctx: Context) -> None:
315315
limiter = ErrorLimiter("ctdb_manage_nodes", 10, pause_func=waiter.wait)
316316
while True:
317317
with limiter.catch():
318-
ctdb.monitor_cluster_meta_updates(
318+
ctdb.manage_cluster_meta_updates(
319319
cmeta=np.cluster_meta(),
320320
pnn=expected_pnn,
321321
real_path=np.persistent_path,

sambacc/ctdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,15 +338,15 @@ def manage_nodes(
338338
pause_func: typing.Callable,
339339
) -> None:
340340
"""Monitor nodes json for updates, reflecting those changes into ctdb."""
341-
monitor_cluster_meta_updates(
341+
manage_cluster_meta_updates(
342342
ClusterMetaJSONFile(nodes_json),
343343
pnn,
344344
real_path,
345345
pause_func,
346346
)
347347

348348

349-
def monitor_cluster_meta_updates(
349+
def manage_cluster_meta_updates(
350350
cmeta: ClusterMeta,
351351
pnn: int,
352352
real_path: str,

0 commit comments

Comments
 (0)