Skip to content

Commit db06d90

Browse files
commands: pass an opener to the joiner
When performing a join or must-join command accept an opener provided by the application context. Signed-off-by: John Mulligan <[email protected]>
1 parent 6cbe651 commit db06d90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sambacc/commands/join.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def join(ctx: Context) -> None:
8787
testing/non-production purposes.
8888
"""
8989
# maybe in the future we'll have more secure methods
90-
joiner = joinutil.Joiner(ctx.cli.join_marker)
90+
joiner = joinutil.Joiner(ctx.cli.join_marker, opener=ctx.opener)
9191
_add_join_sources(joiner, ctx.cli)
9292
try:
9393
joiner.join()
@@ -130,7 +130,7 @@ def must_join(ctx: Context) -> None:
130130
"""If possible, perform an unattended domain join. Otherwise,
131131
exit or block until a join has been perfmed by another process.
132132
"""
133-
joiner = joinutil.Joiner(ctx.cli.join_marker)
133+
joiner = joinutil.Joiner(ctx.cli.join_marker, opener=ctx.opener)
134134
if joiner.did_join():
135135
print("already joined")
136136
return

0 commit comments

Comments
 (0)