Skip to content

Commit

Permalink
provider/aws: Avoid crash when EgressOnly IGW disappears (#14929)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed May 30, 2017
1 parent 5d33023 commit b802897
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ func EIGWStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc {
return nil, "", err
}
}
if len(resp.EgressOnlyInternetGateways) < 1 {
resp = nil
}

if resp == nil {
// Sometimes AWS just has consistency issues and doesn't see
Expand Down

0 comments on commit b802897

Please sign in to comment.