fix: error in capturing XFS error config in health report (#17176)

This commit is contained in:
Shireesh Anjal
2023-05-11 03:50:48 +05:30
committed by GitHub
parent 3cdbc2f414
commit a3d666356c
2 changed files with 2 additions and 3 deletions
+1 -3
View File
@@ -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
}