fix: not updating when only something other than hostname or description changed
Some checks failed
CI / build (push) Failing after 3m41s
CI / lint (push) Failing after 3m5s
CI / pkl-validate (push) Successful in 11s
CI / integration-tests (push) Has been skipped
CI / conformance-tests (latest) (push) Has been skipped

This commit is contained in:
2026-02-03 23:16:05 +01:00
parent e71d964f2c
commit 92db61569c
2 changed files with 43 additions and 42 deletions

View File

@@ -64,17 +64,20 @@ func authenticatedRequest(method, url, authorization string, urlparams url.Value
request, err := http.NewRequest(method, url, body)
if err != nil {
log.Println("Error: ", err)
return nil, err
}
request.Header.Set("Authorization", authorization)
resp, err := client.Do(request)
if err != nil {
log.Println("Error: ", err)
return nil, err
}
data, err := io.ReadAll(resp.Body)
if err != nil {
log.Println("Error: ", err)
return nil, err
}