mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[s3] fix get_bucket mock to return nil instead of ''
This commit is contained in:
parent
79ee062d93
commit
72d1836f26
1 changed files with 2 additions and 2 deletions
|
@ -79,10 +79,10 @@ module Fog
|
||||||
data
|
data
|
||||||
end,
|
end,
|
||||||
'IsTruncated' => false,
|
'IsTruncated' => false,
|
||||||
'Marker' => options['marker'] || '',
|
'Marker' => options['marker'],
|
||||||
'MaxKeys' => options['max-keys'] || 1000,
|
'MaxKeys' => options['max-keys'] || 1000,
|
||||||
'Name' => bucket['Name'],
|
'Name' => bucket['Name'],
|
||||||
'Prefix' => options['prefix'] || ''
|
'Prefix' => options['prefix']
|
||||||
}
|
}
|
||||||
if options['max-keys'] && options['max-keys'] < response.body['Contents'].length
|
if options['max-keys'] && options['max-keys'] < response.body['Contents'].length
|
||||||
response.body['IsTruncated'] = true
|
response.body['IsTruncated'] = true
|
||||||
|
|
Loading…
Reference in a new issue