Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AWSException fallback to replicate old constructor #495

Merged
merged 1 commit into from Oct 21, 2021

Conversation

iamed2
Copy link
Member

@iamed2 iamed2 commented Oct 18, 2021

Fixes invenia/CloudWatchLogs.jl#40

When AWSResponse changes went in, a new field was added. CloudWatchLogs.jl tests relied on the default constructor, so when a field was added, tests broke. This adds a fallback that replicates the old constructor. It's also a reasonable fallback I think, given that the final field is optional (could be nothing).

Copy link
Member

@mattBrzezinski mattBrzezinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

bors bot added a commit that referenced this pull request Oct 20, 2021
495: Add AWSException fallback to replicate old constructor r=mattBrzezinski a=iamed2

Fixes invenia/CloudWatchLogs.jl#40

When AWSResponse changes went in, a new field was added. CloudWatchLogs.jl tests relied on the default constructor, so when a field was added, tests broke. This adds a fallback that replicates the old constructor. It's also a reasonable fallback I think, given that the final field is optional (could be `nothing`). 

Co-authored-by: Eric Davies <iamed2@gmail.com>
@bors
Copy link
Contributor

bors bot commented Oct 20, 2021

Build failed:

@iamed2
Copy link
Member Author

iamed2 commented Oct 21, 2021

Build succeeded when retried

@iamed2
Copy link
Member Author

iamed2 commented Oct 21, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 21, 2021

@bors bors bot merged commit 5b138ee into master Oct 21, 2021
@bors bors bot deleted the ed/awsexception-fallback branch October 21, 2021 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] no method matching AWSException(::String, ::String, ::String, ::HTTP.ExceptionRequest.StatusError)
2 participants