Correctly check s3 chunksize parameter
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
ea7d59ce2a
commit
0d8cb4dca8
@ -168,7 +168,7 @@ func FromParameters(parameters map[string]interface{}) (*Driver, error) {
|
|||||||
return nil, fmt.Errorf("invalid valud for chunksize: %#v", chunkSizeParam)
|
return nil, fmt.Errorf("invalid valud for chunksize: %#v", chunkSizeParam)
|
||||||
}
|
}
|
||||||
|
|
||||||
if chunkSize <= minChunkSize {
|
if chunkSize < minChunkSize {
|
||||||
return nil, fmt.Errorf("The chunksize %#v parameter should be a number that is larger than or equal to %d", chunkSize, minChunkSize)
|
return nil, fmt.Errorf("The chunksize %#v parameter should be a number that is larger than or equal to %d", chunkSize, minChunkSize)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user