provider/aws: Do not dereference source_Dest_check in aws_instance (#14723)
Fixes: #14718 source_dest_check may not be set so we should pass the pointer to d.Set func and allow it to dereference it safely
This commit is contained in:
parent
4b85d0c290
commit
542640c953
|
@ -660,7 +660,7 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
|
|||
d.Set("primary_network_interface_id", primaryNetworkInterface.NetworkInterfaceId)
|
||||
d.Set("associate_public_ip_address", primaryNetworkInterface.Association != nil)
|
||||
d.Set("ipv6_address_count", len(primaryNetworkInterface.Ipv6Addresses))
|
||||
d.Set("source_dest_check", *primaryNetworkInterface.SourceDestCheck)
|
||||
d.Set("source_dest_check", primaryNetworkInterface.SourceDestCheck)
|
||||
|
||||
for _, address := range primaryNetworkInterface.Ipv6Addresses {
|
||||
ipv6Addresses = append(ipv6Addresses, *address.Ipv6Address)
|
||||
|
|
Loading…
Reference in New Issue