Prometheus: Version detect bug (#71198)

* remove redundant request copy in backend, add more versions to semver lists
This commit is contained in:
Galen Kistler
2023-07-07 09:39:20 -05:00
committed by GitHub
parent b1e76a7036
commit 7dc071f46b
3 changed files with 24 additions and 17 deletions
+1 -12
View File
@@ -81,16 +81,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)
}