mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
fix: close resp.body checking for kubernetes version (#16547)
This commit is contained in:
parent
14cf8f1b22
commit
a451d1cb8d
@ -1901,7 +1901,7 @@ func getKubernetesInfo(dctx context.Context) madmin.KubernetesInfo {
|
||||
ki.Error = err.Error()
|
||||
return ki
|
||||
}
|
||||
|
||||
defer resp.Body.Close()
|
||||
decoder := json.NewDecoder(resp.Body)
|
||||
if err := decoder.Decode(&ki); err != nil {
|
||||
ki.Error = err.Error()
|
||||
|
Loading…
Reference in New Issue
Block a user