From 56b22c37fc67e6baa4a127ddbabe10807a643203 Mon Sep 17 00:00:00 2001 From: Shireesh Anjal <355479+anjalshireesh@users.noreply.github.com> Date: Wed, 8 Sep 2021 20:31:55 +0530 Subject: [PATCH] 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 --- cmd/admin-subnet-health.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/admin-subnet-health.go b/cmd/admin-subnet-health.go index 5e0d59cc..3e43f74f 100644 --- a/cmd/admin-subnet-health.go +++ b/cmd/admin-subnet-health.go @@ -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