Skip to content

Commit

Permalink
trying out PrivateIPAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
Felivel committed May 8, 2016
1 parent 29f4300 commit faeb834
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ func resourceArmNetworkInterfaceRead(d *schema.ResourceData, meta interface{}) e
}
}

if iface.IPConfigurations != nil {
if *iface.IPConfigurations.Properties.PrivateIPAddress != "" {
d.Set("private_ip_address", *iface.IPConfigurations.Properties.PrivateIPAddress)
if iface.PrivateIPAddress != nil {
if *iface.PrivateIPAddress != "" {
d.Set("private_ip_address", iface.PrivateIPAddress)
}
}

Expand Down

0 comments on commit faeb834

Please sign in to comment.