This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jon Yurek
committed
Aug 20, 2015
1 parent
0e8c21b
commit b8221c6
Showing
2 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -209,11 +209,12 @@ def s3_host_name | |
host_name = @options[:s3_host_name] | ||
host_name = host_name.call(self) if host_name.is_a?(Proc) | ||
|
||
host_name || s3_credentials[:s3_host_name] || "s3.amazonaws.com" | ||
region = ["s3", s3_region].compact.join("-") | ||
host_name || s3_credentials[:s3_host_name] || "#{region}.amazonaws.com" | ||
end | ||
|
||
def s3_region | ||
region = @options[:s3_region] | ||
region = @options[:s3_region] || s3_credentials[:s3_region] | ||
region = region.call(self) if region.is_a?(Proc) | ||
|
||
region || s3_credentials[:s3_region] | ||
This comment has been minimized.
Sorry, something went wrong.
betesh
Contributor
|
||
|
This is failing for Aws v1 because of
paperclip/features/step_definitions/s3_steps.rb
Line 4 in b8221c6
But what it really shows is that we need an additional test here, for AWS v1 only, where we don't configure an
s3_region