From 646712d5e5fbdd9846d57a9ff452cf9500cfa244 Mon Sep 17 00:00:00 2001 From: Shubhendu Date: Tue, 7 May 2024 20:50:21 +0530 Subject: [PATCH] Fix panic in `mc admin health` command (#4921) 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 c61fcb8f..6013b972 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", }