@@ -190,7 +190,7 @@ func (config *ConfigureRunner) Configure(settings *RunnerSettings, survey Survey
190190 taskAgent .DisableUpdate = config .DisableUpdate
191191 {
192192 var err error
193- if auth .UseV2FLow {
193+ if res .UseV2FLow {
194194 err = registerOrReplaceRunnerV2 (taskAgent , config , vssConnection , apiBuilder , false )
195195 } else {
196196 err = vssConnection .Request ("e298ef32-5878-4cab-993c-043836571f42" , "6.0-preview.2" , "POST" , map [string ]string {
@@ -203,7 +203,7 @@ func (config *ConfigureRunner) Configure(settings *RunnerSettings, survey Survey
203203 }
204204 // Try replaceing runner if creation failed
205205 taskAgents := & protocol.TaskAgents {}
206- if auth .UseV2FLow {
206+ if res .UseV2FLow {
207207 resv2 := & protocol.ListRunnersResponse {}
208208 runnersURL , _ := apiBuilder .ScopedApiUrl ("actions/runners" )
209209 err = vssConnection .RequestWithContext2 (context .Background (), "GET" , runnersURL , "" , nil , resv2 )
@@ -235,7 +235,7 @@ func (config *ConfigureRunner) Configure(settings *RunnerSettings, survey Survey
235235 if invalid {
236236 return nil , fmt .Errorf ("failed to update taskAgent: Failed to find agent" )
237237 }
238- if auth .UseV2FLow {
238+ if res .UseV2FLow {
239239 err = registerOrReplaceRunnerV2 (taskAgent , config , vssConnection , apiBuilder , true )
240240 } else {
241241 err = vssConnection .Request ("e298ef32-5878-4cab-993c-043836571f42" , "6.0-preview.2" , "PUT" , map [string ]string {
0 commit comments