mirror of
https://github.com/minio/minio
synced 2024-11-05 17:34:01 +00:00
fix: close resp.body checking for kubernetes version (#16547)
This commit is contained in:
parent
14cf8f1b22
commit
a451d1cb8d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue