Merge pull request #4387 from justnom/master

provider/aws: EIP not noticing it has been unassigned from an ENI
This commit is contained in:
James Nugent 2015-12-18 17:32:55 -05:00
commit 30f9d61a95
1 changed files with 4 additions and 0 deletions

View File

@ -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)