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