Make the encrpyt parameter default to false

This commit is contained in:
Andrey Kostov 2015-01-07 11:51:29 +02:00
parent a0ef0d6aad
commit 7c9112fc3c
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ An implementation of the `storagedriver.StorageDriver` interface which uses Amaz
`bucket`: The name of your s3 bucket where you wish to store objects (needs to already be created prior to driver initialization).
`encrypt`: (optional) Whether you would like your data encrypted on the server side (defaults to true if not specified).
`encrypt`: (optional) Whether you would like your data encrypted on the server side (defaults to false if not specified).
`secure`: (optional) Whether you would like to transfer data over ssl or not. Defaults to true (meaning transfering over ssl) if not specified. Note that while setting this to false will improve performance, it is not recommended due to security concerns.

View file

@ -87,7 +87,7 @@ func FromParameters(parameters map[string]interface{}) (*Driver, error) {
return nil, fmt.Errorf("No bucket parameter provided")
}
encryptBool := true
encryptBool := false
encrypt, ok := parameters["encrypt"]
if ok {
encryptBool, ok = encrypt.(bool)