Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit f0f09bf

Browse files
committed
Set default for launch_shell parameter use_alternative_endpoints
1 parent 475a5c1 commit f0f09bf

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

packages/jumpstarter-cli-client/jumpstarter_cli_client/client_shell.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ def client_shell(config, selector: str, duration: timedelta, lease_name):
2323
with lease.serve_unix() as path:
2424
with lease.monitor():
2525
exit_code = launch_shell(
26-
path, "remote", config.drivers.allow, config.drivers.unsafe, config.useAlternativeEndpoints
26+
path,
27+
"remote",
28+
config.drivers.allow,
29+
config.drivers.unsafe,
30+
use_alternative_endpoints=config.useAlternativeEndpoints,
2731
)
2832

2933
sys.exit(exit_code)

packages/jumpstarter/jumpstarter/common/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def launch_shell(
9494
context: str,
9595
allow: list[str],
9696
unsafe: bool,
97-
use_alternative_endpoints: bool,
97+
*,
98+
use_alternative_endpoints: bool = False,
9899
) -> int:
99100
"""Launch a shell with a custom prompt indicating the exporter type.
100101

0 commit comments

Comments
 (0)