Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding empty string defaults for network interface and instance when reading `aws_eip` resource.
  • Loading branch information
Harry Macey authored and justnom committed Dec 16, 2015
1 parent d4e4fb6 commit 4f5df71
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 4f5df71

Please sign in to comment.