Ensure that admin token exists
Make sure that the admin info is populated when calling GenerateJitRunnerConfig. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
d8cb1c5acd
commit
7e576dc631
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