fix --disable-proxy flag in admin bucket remote add command (#3851)
Co-authored-by: Poorna Krishnamoorthy <poorna@minio.io>
This commit is contained in:
co-authored by
Poorna Krishnamoorthy
parent
7866f97ef5
commit
14303ec6cf
@@ -246,7 +246,7 @@ func fetchRemoteTarget(cli *cli.Context) (sourceBucket string, bktTarget *madmin
|
||||
}
|
||||
console.SetColor(cred, color.New(color.FgYellow, color.Italic))
|
||||
creds := &madmin.Credentials{AccessKey: accessKey, SecretKey: secretKey}
|
||||
proxy := cli.Bool("proxy")
|
||||
disableproxy := cli.Bool("disable-proxy")
|
||||
bktTarget = &madmin.BucketTarget{
|
||||
TargetBucket: tgtBucket,
|
||||
Secure: u.Scheme == "https",
|
||||
@@ -258,7 +258,7 @@ func fetchRemoteTarget(cli *cli.Context) (sourceBucket string, bktTarget *madmin
|
||||
Region: cli.String("region"),
|
||||
BandwidthLimit: int64(bandwidth),
|
||||
ReplicationSync: cli.Bool("sync"),
|
||||
DisableProxy: !proxy,
|
||||
DisableProxy: disableproxy,
|
||||
HealthCheckDuration: time.Duration(cli.Uint("healthcheck-seconds")) * time.Second,
|
||||
}
|
||||
return sourceBucket, bktTarget
|
||||
|
||||
Reference in New Issue
Block a user