diff --git a/azurerm/resource_arm_public_ip.go b/azurerm/resource_arm_public_ip.go index 93317ea9fae8..f70246e70212 100644 --- a/azurerm/resource_arm_public_ip.go +++ b/azurerm/resource_arm_public_ip.go @@ -223,10 +223,10 @@ func resourceArmPublicIpRead(d *schema.ResourceData, meta interface{}) error { if fqdn := settings.Fqdn; fqdn != nil { d.Set("fqdn", fqdn) } + } - if ip := props.IPAddress; ip != nil { - d.Set("ip_address", ip) - } + if ip := props.IPAddress; ip != nil { + d.Set("ip_address", ip) } }