fix: Consider insecure flag in host add cmd (#2331)

--insecure wasn't have an effect when invoked in a `mc host add` cmd. This
PR fixes the behavior.
This commit is contained in:
A. Elleuch
2017-12-11 15:14:56 -08:00
committed by Dee Koder
parent 5ddf9728f8
commit b0780f14cb
+2
View File
@@ -135,6 +135,7 @@ func newS3Config(args cli.Args) (*Config, *probe.Error) {
// required in situations when signature type is provided by the user.
if api != "" {
return &Config{
Insecure: globalInsecure,
AccessKey: accessKey,
SecretKey: secretKey,
Signature: api,
@@ -143,6 +144,7 @@ func newS3Config(args cli.Args) (*Config, *probe.Error) {
}
s3Config := &Config{
Insecure: globalInsecure,
AccessKey: accessKey,
SecretKey: secretKey,
Signature: "s3v4",