[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:
co-authored by
Galen Kistler
parent
19ea031bbd
commit
6ab231d61d
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user