Merge pull request #5155 from hashicorp/b-aws-route-error

provider/aws: Return an error if no route is found for an AWS Route
pull/5168/head
Clint 10 years ago
commit 37a708a2f0

@ -322,5 +322,7 @@ func findResourceRoute(conn *ec2.EC2, rtbid string, cidr string) (*ec2.Route, er
}
}
return nil, nil
return nil, fmt.Errorf(`
error finding matching route for Route table (%s) and destination CIDR block (%s)`,
rtbid, cidr)
}

Loading…
Cancel
Save