Fix ipv6 route detail retrieval

main
Elie 2021-07-13 14:17:54 +02:00
parent 407fa4cf52
commit bbfde71109
No known key found for this signature in database
GPG Key ID: 399AF69092C727B6
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ func (r *EC2RouteDetailsFetcher) ReadDetails(res resource.Resource) (resource.Re
attributes["destination_cidr_block"] = *ipv4
}
if ipv6 := res.Attributes().GetString("destination_ipv6_cidr_block"); ipv6 != nil && *ipv6 != "" {
attributes["destination_cidr_block"] = *ipv6
attributes["destination_ipv6_cidr_block"] = *ipv6
}
ctyVal, err := r.reader.ReadResource(terraform.ReadResourceArgs{
Ty: aws.AwsRouteResourceType,