Fixes #4351
Adding empty string defaults for network interface and instance when reading `aws_eip` resource.
This commit is contained in:
parent
d4e4fb6ea0
commit
4f5df717b4
|
@ -146,9 +146,13 @@ func resourceAwsEipRead(d *schema.ResourceData, meta interface{}) error {
|
|||
d.Set("association_id", address.AssociationId)
|
||||
if address.InstanceId != nil {
|
||||
d.Set("instance", address.InstanceId)
|
||||
} else {
|
||||
d.Set("instance", "")
|
||||
}
|
||||
if address.NetworkInterfaceId != nil {
|
||||
d.Set("network_interface", address.NetworkInterfaceId)
|
||||
} else {
|
||||
d.Set("network_interface", "")
|
||||
}
|
||||
d.Set("private_ip", address.PrivateIpAddress)
|
||||
d.Set("public_ip", address.PublicIp)
|
||||
|
|
Loading…
Reference in New Issue