Merge pull request #4387 from justnom/master
provider/aws: EIP not noticing it has been unassigned from an ENI
This commit is contained in:
commit
30f9d61a95
|
@ -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