[v9.4.x] Prometheus: Version detect bug (#71242)

Prometheus: Version detect bug (#71198)

* remove redundant request copy in backend, add more versions to semver lists

(cherry picked from commit 7dc071f46b)

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot]
2023-07-07 14:21:31 -05:00
committed by GitHub
co-authored by Galen Kistler
parent 19ea031bbd
commit 6ab231d61d
3 changed files with 24 additions and 17 deletions
+1 -12
View File
@@ -76,16 +76,5 @@ func (r *Resource) DetectVersion(ctx context.Context, req *backend.CallResourceR
Path: "/api/v1/status/buildinfo",
}
resp, err := r.Execute(ctx, newReq)
if err != nil {
return nil, err
}
callResponse := &backend.CallResourceResponse{
Status: 200,
Body: resp.Body,
}
return callResponse, nil
return r.Execute(ctx, newReq)
}