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
   . Removes the forgotten debug message
  • Loading branch information
ebozduman committed Sep 22, 2017
1 parent a551063 commit 4d4bb29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 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,10 @@ def removeObjects(bucket_name)
file_name = ''
@@s3.bucket(bucket_name).objects.each do |obj|
file_name = obj.key
obj.delete obj.key
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 4d4bb29

Please sign in to comment.