mirror of https://github.com/minio/minio.git
fix: error in capturing XFS error config in health report (#17176)
This commit is contained in:
parent
3cdbc2f414
commit
a3d666356c
|
@ -136,6 +136,7 @@ func init() {
|
|||
|
||||
gob.Register(StorageErr(""))
|
||||
gob.Register(madmin.TimeInfo{})
|
||||
gob.Register(madmin.XFSErrorConfigs{})
|
||||
gob.Register(map[string]interface{}{})
|
||||
|
||||
defaultAWSCredProvider = []credentials.Provider{
|
||||
|
|
|
@ -178,9 +178,7 @@ func (client *peerRESTClient) GetSysConfig(ctx context.Context) (info madmin.Sys
|
|||
defer xhttp.DrainBody(respBody)
|
||||
|
||||
err = gob.NewDecoder(respBody).Decode(&info)
|
||||
cfg := info.Config["time-info"]
|
||||
if cfg != nil {
|
||||
ti := cfg.(madmin.TimeInfo)
|
||||
if ti, ok := info.Config["time-info"].(madmin.TimeInfo); ok {
|
||||
ti.RoundtripDuration = roundtrip
|
||||
info.Config["time-info"] = ti
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue