change agent creation logic to use agentToken instead of systemToken
All checks were successful
Pipeline was successful

This commit is contained in:
2023-11-12 22:24:44 +01:00
parent b536c88db8
commit fe52d864a4
5 changed files with 107 additions and 19 deletions

View File

@@ -15,7 +15,7 @@ import (
func QueueInfo(cfg *config.Config, target interface{}) error {
apiRoute := fmt.Sprintf("%s/api/queue/info", cfg.WoodpeckerInstance)
req, err := http.NewRequest("GET", apiRoute, nil)
req, err := http.NewRequest(http.MethodGet, apiRoute, nil)
if err != nil {
return errors.New(fmt.Sprintf("Could not create queue request: %s", err.Error()))
}