File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
agent_starter_pack/cli/commands Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -741,18 +741,18 @@ def create(
741741 f"Error: No deployment targets available for agent '{ deployment_agent_name } '."
742742 )
743743 # Auto-select if only one target available or in auto-approve mode
744- if len (available_targets ) == 1 :
744+ if len (available_targets ) == 1 or auto_approve :
745745 final_deployment = available_targets [0 ]
746- console . print (
747- f"Info: Using ' { final_deployment } ' (only available deployment target for this agent)." ,
748- style = "yellow " ,
749- )
750- elif auto_approve :
751- final_deployment = available_targets [ 0 ]
752- console .print (
753- f"Info: --deployment-target not specified. Defaulting to '{ final_deployment } ' in auto-approve mode." ,
754- style = "yellow" ,
755- )
746+ if len ( available_targets ) == 1 :
747+ console . print (
748+ f"Info: Using ' { final_deployment } ' (only available deployment target for this agent). " ,
749+ style = "yellow" ,
750+ )
751+ else :
752+ console .print (
753+ f"Info: --deployment-target not specified. Defaulting to '{ final_deployment } ' in auto-approve mode." ,
754+ style = "yellow" ,
755+ )
756756 else :
757757 final_deployment = prompt_deployment_target (
758758 deployment_agent_name , remote_config = remote_config
You can’t perform that action at this time.
0 commit comments