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

fix(aws): Fix bug in AWS provider after Groovy 3 upgrade (backport #6142) #6143

Merged
merged 1 commit into from Feb 1, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Feb 1, 2024

This is an automatic backport of pull request #6142 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* fix(aws): Fix bug in AWS provider after Groovy 3 upgrade

I'm unsure how this code has ever worked, but after the upgrade to Groovy 3, it started crashing.

```
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '{loadBalancers=aws:loadBalancers:my-aws-account:eu-west-1:*:vpc-????????:*}' with class 'java.util.LinkedHashMap' to class 'java.util.Optional' due to: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.util.Optional(LinkedHashMap)
```

* Add tests

(cherry picked from commit b19a906)
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for a merge label Feb 1, 2024
@mergify mergify bot added the auto merged Merged automatically by a bot label Feb 1, 2024
@mergify mergify bot merged commit 962724c into release-1.33.x Feb 1, 2024
17 checks passed
@mergify mergify bot deleted the mergify/bp/release-1.33.x/pr-6142 branch February 1, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for a merge target-release/1.33
Projects
None yet
3 participants