Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
service/ec2: Prevent aws_default_route_table panic caused by aws_rout…
…e_table attribute changes Reference: #14864 Decoupling of the two resources can occur separately, but opting for this small fix as we cannot verify whether the `aws_default_route_table` resource can support `local_gateway_id` or not ourselves before tomorrow's release. Previously: ``` === CONT TestAccAWSDefaultRouteTable_Route ------- Stderr: ------- panic: interface conversion: interface {} is nil, not string goroutine 492 [running]: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsRouteTableUpdate(0xc00179f200, 0x5bf4d20, 0xc0017ccf00, 0x5a5f0c0, 0xc00144ab40) /opt/teamcity-agent/work/2e10e023da0c7520/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_route_table.go:397 +0x2cbd github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsDefaultRouteTableCreate(0xc00179f200, 0x5bf4d20, 0xc0017ccf00, 0x3, 0xffffffffffffffff) /opt/teamcity-agent/work/2e10e023da0c7520/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_default_route_table.go:149 +0x5b2 github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0xc0008c7760, 0x7763460, 0xc001ec8580, 0xc00179f200, 0x5bf4d20, 0xc0017ccf00, 0x0, 0x0, 0x0) /opt/teamcity-agent/work/2e10e023da0c7520/src/github.com/terraform-providers/terraform-provider-aws/vendor/github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema/resource.go:269 +0x88 ``` Output from acceptance testing: ``` --- PASS: TestAccAWSDefaultRouteTable_disappears_Vpc (20.85s) --- PASS: TestAccAWSDefaultRouteTable_basic (39.08s) --- PASS: TestAccAWSDefaultRouteTable_vpc_endpoint (54.68s) --- PASS: TestAccAWSDefaultRouteTable_ConditionalCidrBlock (69.75s) --- PASS: TestAccAWSDefaultRouteTable_tags (70.91s) --- PASS: TestAccAWSDefaultRouteTable_swap (83.45s) --- PASS: TestAccAWSDefaultRouteTable_Route (107.71s) --- PASS: TestAccAWSDefaultRouteTable_Route_TransitGatewayID (331.13s) --- FAIL: TestAccAWSRouteTable_panicEmptyRoute (17.11s) # See also: #14383 --- PASS: TestAccAWSRouteTable_ipv6 (38.51s) --- PASS: TestAccAWSRouteTable_vpcPeering (44.24s) --- PASS: TestAccAWSRouteTable_vgwRoutePropagation (45.36s) --- PASS: TestAccAWSRouteTable_ConditionalCidrBlock (70.65s) --- PASS: TestAccAWSRouteTable_basic (80.26s) --- PASS: TestAccAWSRouteTable_tags (90.73s) --- PASS: TestAccAWSRouteTable_Route_ConfigMode (92.20s) --- PASS: TestAccAWSRouteTable_instance (116.15s) --- PASS: TestAccAWSRouteTable_Route_TransitGatewayID (321.82s) ```
- Loading branch information