fix: subnet health spinners not working properly (#3788)
The "admin info" step was moved from being the first step to the last step in minio at some point, but the sequence of spinners in mc was not updated with this change. Because of this, the first spinner itself used to get stuck for the whole duration of report generation. Fixed by correcting the sequence of spinners to make them in sync with the processing in minio. Signed-off-by: Shireesh Anjal <shireesh@minio.io>
This commit is contained in:
@@ -465,18 +465,18 @@ func fetchServerHealthInfo(ctx *cli.Context, client *madmin.AdminClient) (interf
|
||||
}
|
||||
|
||||
progress := func(info madmin.HealthInfo) {
|
||||
_ = admin(len(info.Minio.Info.Servers) > 0) &&
|
||||
cpu(len(info.Sys.CPUInfo) > 0) &&
|
||||
_ = cpu(len(info.Sys.CPUInfo) > 0) &&
|
||||
diskHw(len(info.Sys.Partitions) > 0) &&
|
||||
osInfo(len(info.Sys.OSInfo) > 0) &&
|
||||
mem(len(info.Sys.MemInfo) > 0) &&
|
||||
syserr(len(info.Sys.SysErrs) > 0) &&
|
||||
syssrv(len(info.Sys.SysServices) > 0) &&
|
||||
sysconfig(len(info.Sys.SysConfig) > 0) &&
|
||||
process(len(info.Sys.ProcInfo) > 0) &&
|
||||
config(info.Minio.Config.Config != nil) &&
|
||||
drive(len(info.Perf.Drives) > 0) &&
|
||||
net(len(info.Perf.Net) > 1 && len(info.Perf.NetParallel.Addr) > 0)
|
||||
net(len(info.Perf.Net) > 1 && len(info.Perf.NetParallel.Addr) > 0) &&
|
||||
syserr(len(info.Sys.SysErrs) > 0) &&
|
||||
syssrv(len(info.Sys.SysServices) > 0) &&
|
||||
sysconfig(len(info.Sys.SysConfig) > 0) &&
|
||||
admin(len(info.Minio.Info.Servers) > 0)
|
||||
}
|
||||
|
||||
var err error
|
||||
|
||||
Reference in New Issue
Block a user