forked from adamsalter/sitemap_generator
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only set :endpoint from legacy option if present (AwsSdkAdapter) (#390)
* only set endpoint from legacy option if present In the `aws-sdk-core` gem, the `endpoint` option is meant for overriding the default endpoint value resolved from the region option [1]. Passing a `nil` value for the endpoint option is not the same as not passing it at all, as nil is still considered to be an override [2][3]. A recent refactor to the `AwsSdkAdapter` looks to have tweaked the options logic to always include the `endpoint` key in the object being passed to `Aws::S3::Resource`. By default, this will raise a "missing required option :endpoint" exception as the default legacy option of `nil` will be set for the endpoint. This change ensures that the `endpoint` value isn't set if the legacy option is not specified. [1] https://github.com/aws/aws-sdk-ruby/blob/c97f6932b6d5d6bc3e45aaf1068be52afd6781be/gems/aws-sdk-core/lib/seahorse/client/plugins/endpoint.rb#L11-L15 [2] https://github.com/aws/aws-sdk-ruby/blob/c97f6932b6d5d6bc3e45aaf1068be52afd6781be/gems/aws-sdk-core/lib/seahorse/client/plugins/endpoint.rb#L29-L32 [3] aws/aws-sdk-ruby#2066 * Improve the options setting so that we only set the option when we have a value, and only if it is not already set * Upgrade to 6.2.1 Co-authored-by: Zoran Pesic <zoran1991@gmail.com>
- Loading branch information
Showing
4 changed files
with
65 additions
and
79 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 |
---|---|---|
@@ -1 +1 @@ | ||
6.2.0 | ||
6.2.1 |
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