From 0dde4a45a2859d2fd0c0bc29286ddeacd4d956eb Mon Sep 17 00:00:00 2001 From: Shubhendu Ram Tripathi Date: Tue, 7 May 2024 12:27:09 +0530 Subject: [PATCH] Fix panic in `mc admin health` command The globalFlags were getting added twice and so causing duplicate error andso a panic. Signed-off-by: Shubhendu Ram Tripathi --- cmd/admin-subnet-health.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/admin-subnet-health.go b/cmd/admin-subnet-health.go index c61fcb8f0b..6013b972ce 100644 --- a/cmd/admin-subnet-health.go +++ b/cmd/admin-subnet-health.go @@ -32,7 +32,7 @@ var adminSubnetHealthCmd = cli.Command{ Action: mainSubnetHealth, Before: setGlobalsFromContext, Hidden: true, - Flags: append(supportDiagFlags, globalFlags...), + Flags: supportDiagFlags, // No need to append globalFlags as top level command would add them CustomHelpTemplate: "This command is deprecated and will be removed in a future release. Use 'mc support diag' instead.\n", }