minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

Fix panic in `mc admin health` command #4921

Closed shtripat closed 5 months ago

shtripat commented 5 months ago

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 license. By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 license.

Description

The globalFlags were getting added twice and so causing duplicate error and so a panic.

Motivation and Context

How to test this PR?

./mc admin health info play/

Types of changes

Checklist: