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

provider/aws: fix potential aws_route crashes #5867

Merged
merged 1 commit into from
Mar 29, 2016
Merged

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Mar 25, 2016

Fixes #5865

@@ -320,6 +326,11 @@ func findResourceRoute(conn *ec2.EC2, rtbid string, cidr string) (*ec2.Route, er
return nil, err
}

if len(res.RouteTables) < 1 || res.RouteTables[0] == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

The response is called resp here, not res. I think we should rename it resp in the other method, honestly. resp is more telling to me than res...

@catsby
Copy link
Contributor

catsby commented Mar 29, 2016

The patch looks correct, but there's a typo that is causing Travis to fail. After that 👍

@phinze
Copy link
Contributor Author

phinze commented Mar 29, 2016

Whoops - thanks for the catch / ping. Fixed and we'll see what Travis thinks of it. 😀

@catsby
Copy link
Contributor

catsby commented Mar 29, 2016

Travis agrees with the changes 👍

@phinze phinze merged commit faba2b7 into master Mar 29, 2016
@phinze phinze deleted the phinze/fix-route-crash branch March 29, 2016 18:20
@ghost
Copy link

ghost commented Apr 27, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash in terraform 0.6.14 on refreshing route state
3 participants