provider/aws: Return an error if no route is found for an AWS Route
This commit is contained in:
parent
320dc3ddf4
commit
a706b7c8a4
|
@ -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