File tree Expand file tree Collapse file tree
scripts/on-premises/single-server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -647,7 +647,7 @@ func createCommand(opts *subCommandOpts) *cobra.Command {
647647 create .Flags ().StringVar (
648648 & createFlags .BuildAPICredentialsSource ,
649649 buildAPICredsSourceFlag ,
650- "none" ,
650+ opts . InitialConfig . DefaultService (). BuildAPICredentialsSource ,
651651 "Source for the Build API OAuth2 credentials" )
652652 create .Flags ().StringVar (
653653 & createFlags .BuildAPIUserProjectID ,
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ func (c *Config) DefaultService() *Service {
8080 } else if c .SystemDefaultService != "" {
8181 return c .Services [c .SystemDefaultService ]
8282 }
83- return & Service {}
83+ return & Service {BuildAPICredentialsSource : "none" }
8484}
8585
8686func (c * Config ) ConnectionControlDirExpanded () string {
Original file line number Diff line number Diff line change @@ -35,3 +35,6 @@ Host = {}
3535
3636# Agent name used for ADB connection.
3737ConnectAgent = " websocket"
38+
39+ BuildAPICredentialsSource = " none"
40+
You can’t perform that action at this time.
0 commit comments