Merge pull request #405 from gabriel-samfira/ensure-token
Ensure that admin token exists
This commit is contained in:
commit
ed8e11e244
1 changed files with 4 additions and 0 deletions
|
|
@ -41,6 +41,10 @@ func (s *ScaleSetClient) GenerateJitRunnerConfig(ctx context.Context, runnerName
|
|||
return params.RunnerScaleSetJitRunnerConfig{}, err
|
||||
}
|
||||
|
||||
if err := s.ensureAdminInfo(ctx); err != nil {
|
||||
return params.RunnerScaleSetJitRunnerConfig{}, fmt.Errorf("failed to ensure admin info: %w", err)
|
||||
}
|
||||
|
||||
serviceURL, err := s.actionsServiceInfo.GetURL()
|
||||
if err != nil {
|
||||
return params.RunnerScaleSetJitRunnerConfig{}, fmt.Errorf("failed to get pipeline URL: %w", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue