File tree Expand file tree Collapse file tree
src/fastapi_cloud_cli/commands Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments