gateway: Use default params when no args provided (#4315)

For S3 & Azure, use default parameters when no arguments (endpoint) are
provided. This also avoids a crash.
This commit is contained in:
Anis Elleuch
2017-05-12 07:38:22 +02:00
committed by Harshavardhana
parent b829ec4a6b
commit 5d602034ea
4 changed files with 39 additions and 32 deletions

View File

@@ -179,7 +179,7 @@ const (
)
// GatewayFn returns the GatewayLayer for the backend
type GatewayFn func([]string) (GatewayLayer, error)
type GatewayFn func(cli.Args) (GatewayLayer, error)
var (
backends = map[gatewayBackend]GatewayFn{