From faeb834eb023b3fe013645de14743f5f438e8b96 Mon Sep 17 00:00:00 2001 From: Felivel Camilo Date: Sun, 8 May 2016 15:22:50 -0400 Subject: [PATCH] trying out PrivateIPAddress --- .../azurerm/resource_arm_network_interface_card.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/providers/azurerm/resource_arm_network_interface_card.go b/builtin/providers/azurerm/resource_arm_network_interface_card.go index 2327be8ecfc4..8adcd15f7154 100644 --- a/builtin/providers/azurerm/resource_arm_network_interface_card.go +++ b/builtin/providers/azurerm/resource_arm_network_interface_card.go @@ -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) } }