Skip to content

Commit cc1948e

Browse files
committed
Rename use_deploy -> use_deploy_token
1 parent 9673a15 commit cc1948e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/fastapi_cloud_cli/commands/deploy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ def deploy(
689689
)
690690

691691
identity = Identity()
692-
use_deploy = identity.has_deploy_token()
693-
has_auth = use_deploy or identity.is_logged_in()
692+
use_deploy_token = identity.has_deploy_token()
693+
has_auth = use_deploy_token or identity.is_logged_in()
694694

695695
with get_rich_toolkit() as toolkit:
696696
if not has_auth:
@@ -726,14 +726,14 @@ def deploy(
726726
_waitlist_form(toolkit)
727727
raise typer.Exit(1)
728728

729-
if use_deploy:
729+
if use_deploy_token:
730730
toolkit.print(
731731
"Using token from [bold blue]FASTAPI_CLOUD_TOKEN[/] environment variable",
732732
tag="info",
733733
)
734734
toolkit.print_line()
735735

736-
with APIClient(use_deploy_token=use_deploy) as client:
736+
with APIClient(use_deploy_token=use_deploy_token) as client:
737737
toolkit.print_title("Starting deployment", tag="FastAPI")
738738
toolkit.print_line()
739739

0 commit comments

Comments
 (0)