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:
@@ -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",
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user