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 <shubhendu@minio.io>
This commit is contained in:
Shubhendu
2024-05-07 08:20:21 -07:00
committed by GitHub
parent b471de8d18
commit 646712d5e5
+1 -1
View File
@@ -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",
}