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

[bugfix] fix AWS triggers where deserialization would crash if region was not specified #32729

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

vandonr-amz
Copy link
Contributor

the region is not serialized if it's None, so if a trigger has a non-optional region and we pass None to it manually, it doesn't get serialized, and the code crashes when trying to rebuild the trigger from the serialized params, complaining about a missing "region_name" argument.

if self.region_name:
# if we serialize the None value from this, it breaks subclasses that don't have it in their ctor.
params["region_name"] = self.region_name

… was not specified

the region is not serialized if it's None, so if a trigger has a non-optional region and we pass `None` to it manually, it doesn't get serialized, and the code crashes when trying to rebuild the trigger from the serialized params, complaining about a missing "region_name" argument.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

those triggers were merged yesterday, so no trouble in rearranging the arguments, it's not breaking compared to released code.

@vincbeck vincbeck merged commit 75ed3bc into apache:main Jul 20, 2023
@vincbeck vincbeck deleted the vandonr/fix branch July 20, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon-aws AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants