1
0
Fork 0
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:
geemus 2010-05-06 11:47:02 -07:00
parent 79ee062d93
commit 72d1836f26

View file

@ -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