Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def _prompt_for_runtime():
default_idx = str(runtime_options.index(default_runtime) + 1)

while True:
choice = prompt(f"Choice [{default_idx}]: ", default=default_idx).strip()
choice = prompt(f"Choice [{default_idx}]: ").strip() or default_idx
if choice in ["1", "2", "3", "4"]:
return runtime_options[int(choice) - 1]
console.print("[red]Invalid choice. Please enter 1-4.[/red]")
Expand Down Expand Up @@ -444,7 +444,7 @@ def _check_direct_code_deploy_available():
runtime_type = None
else:
while True:
choice = prompt("Choice [1]: ", default="1").strip()
choice = prompt("Choice [1]: ").strip() or "1"
if choice in ["1", "2"]:
deployment_type = deployment_options[int(choice) - 1][1]
break
Expand Down
Loading