Skip to content

Commit

Permalink
Use path style addressing only for buckets with underscore.
Browse files Browse the repository at this point in the history
  • Loading branch information
workeitel committed Oct 14, 2015
1 parent 4c66499 commit a1e7ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scm_helper/libraries/s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def prepare_s3_checkouts(scm_options)
mode "0600"
# per default it's host-style addressing
# but older versions of rest-client doesn't support host-style addressing with `_` in bucket name
s3_url "https://s3.amazonaws.com/#{s3_bucket}"
s3_url "https://s3.amazonaws.com/#{s3_bucket}" if s3_bucket.include?("_")
action :create
end

Expand Down

0 comments on commit a1e7ca6

Please sign in to comment.