Skip to content

Commit

Permalink
Fixes the delete object issue for docker environment, minio#142
Browse files Browse the repository at this point in the history
   . Adds more verbosity to cleanup exception messages
  • Loading branch information
ebozduman committed Sep 21, 2017
1 parent a551063 commit 4fe6f0c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions run/core/aws-sdk-ruby/aws-stub-tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def cleanUp(buckets, log_output)
end
end
rescue => e
raise "Failed to clean-up bucket '#{bucket_name}': #{e}"
raise "Failed to clean-up bucket '#{bucket_name}', #{e}"
end

#
Expand Down Expand Up @@ -207,10 +207,11 @@ def removeObjects(bucket_name)
file_name = ''
@@s3.bucket(bucket_name).objects.each do |obj|
file_name = obj.key
obj.delete obj.key
raise "BOOOM!"
obj.delete
end
rescue => e
raise e
raise "File name: '#{file_name}', #{e}"
end

def removeObjectsWrapper(bucket_name, log_output)
Expand Down

0 comments on commit 4fe6f0c

Please sign in to comment.