1
0
mirror of https://github.com/minio/mc.git synced 2025-12-13 10:42:14 +03:00

Fix incorrect bool parsing (#4991)

For example `--json=false` would still print JSON.

Went through all usage, and I think I covered them all.
This commit is contained in:
Klaus Post
2024-07-18 09:08:30 -07:00
committed by GitHub
parent ded36374e8
commit f6df01d750
8 changed files with 18 additions and 18 deletions

View File

@@ -519,7 +519,7 @@ func mainReplicateBacklog(cliCtx *cli.Context) error {
// Create a new MinIO Admin Client
client, cerr := newAdminClient(aliasedURL)
fatalIf(cerr, "Unable to initialize admin connection.")
if !cliCtx.IsSet("full") {
if !cliCtx.Bool("full") {
mrfCh := client.BucketReplicationMRF(ctx, bucket, cliCtx.String("nodes"))
if globalJSON {
for mrf := range mrfCh {