Merge pull request #5155 from hashicorp/b-aws-route-error
provider/aws: Return an error if no route is found for an AWS Route
This commit is contained in:
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…
Reference in New Issue