Skip to content

Commit

Permalink
Add a 5 second sleep between each retry in s3_file cookbook.
Browse files Browse the repository at this point in the history
  • Loading branch information
workeitel committed Jan 13, 2016
1 parent e38bc31 commit be528e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions s3_file/libraries/s3_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def self.get_from_s3(bucket, url, path, aws_access_key_id, aws_secret_access_key
error = e.respond_to?(:response) ? e.response : e
if attempts < retries
Chef::Log.warn(error)
sleep 5
next
else
Chef::Log.fatal(error)
Expand Down

0 comments on commit be528e0

Please sign in to comment.