provider/aws: Fix misleading error in aws_route validation

If more than one of the allowed targets is specified in an `aws_route`
resource, we should provide an error message that does not include
`route_table_id` as a valid target, since `route_table_id` is actually
a required argument.
This commit is contained in:
Mioi Hanaoka 2017-05-31 12:50:56 -07:00
parent 3ddfcdfd39
commit 805ff4021e
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ import (
// How long to sleep if a limit-exceeded event happens
var routeTargetValidationError = errors.New("Error: more than 1 target specified. Only 1 of gateway_id, " +
"egress_only_gateway_id, nat_gateway_id, instance_id, network_interface_id, route_table_id or " +
"egress_only_gateway_id, nat_gateway_id, instance_id, network_interface_id or " +
"vpc_peering_connection_id is allowed.")
// AWS Route resource Schema declaration