lib/backup/cloud_io/s3.rb in backup-3.9.0 vs lib/backup/cloud_io/s3.rb in backup-3.10.0

- old
+ new

@@ -104,10 +104,10 @@ opts = { :quiet => true } # only report Errors in DeleteResult until keys.empty? _keys = keys.slice!(0, 1000) with_retries('DELETE Multiple Objects') do - resp = connection.delete_multiple_objects(bucket, _keys, opts) + resp = connection.delete_multiple_objects(bucket, _keys, opts.dup) unless resp.body['DeleteResult'].empty? errors = resp.body['DeleteResult'].map do |result| error = result['Error'] "Failed to delete: #{ error['Key'] }\n" + "Reason: #{ error['Code'] }: #{ error['Message'] }"