lib/backup/cloud_io/s3.rb in backup-3.7.1 vs lib/backup/cloud_io/s3.rb in backup-3.7.2
- old
+ new
@@ -64,13 +64,13 @@
# - If marker is given, only objects after the marker are in the response.
def objects(prefix)
objects = []
resp = nil
prefix = prefix.chomp('/')
- opts = { :prefix => prefix + '/' }
+ opts = { 'prefix' => prefix + '/' }
while resp.nil? || resp.body['IsTruncated']
- opts.merge!(:marker => objects.last.key) unless objects.empty?
+ opts.merge!('marker' => objects.last.key) unless objects.empty?
with_retries("GET '#{ bucket }/#{ prefix }/*'") do
resp = connection.get_bucket(bucket, opts)
end
resp.body['Contents'].each do |obj_data|
objects << Object.new(self, obj_data)