This commit is contained in:
Francesco Renzi
2026-01-31 12:35:56 +01:00
parent 14887afcce
commit c250298318
+5
View File
@@ -74,6 +74,8 @@ func run(ctx context.Context, c Config) error {
runnerGroupID = runnerGroup.ID
}
slog.Info("creating scale set")
// Create the runner scale set
scaleSet, err := scalesetClient.CreateRunnerScaleSet(ctx, &scaleset.RunnerScaleSet{
Name: c.ScaleSetName,
@@ -84,9 +86,12 @@ func run(ctx context.Context, c Config) error {
},
})
if err != nil {
slog.Error("failed to create", err)
return fmt.Errorf("failed to create runner scale set: %w", err)
}
slog.Info("created")
// Set the user agent for the scaleset client now that we have the scale set ID
scalesetClient.SetSystemInfo(systemInfo(scaleSet.ID))