Skip to content

Commit

Permalink
Merge pull request #4387 from justnom/master
Browse files Browse the repository at this point in the history
provider/aws: EIP not noticing it has been unassigned from an ENI
  • Loading branch information
jen20 committed Dec 18, 2015
2 parents 67a101f + 4f5df71 commit 30f9d61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builtin/providers/aws/resource_aws_eip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 30f9d61

Please sign in to comment.