Merge pull request #6790 from hashicorp/b-arm-nic-iphash
provider/azurerm: `azurerm_network_interface` diffs didn't match during apply
This commit is contained in:
commit
3356acc1f7
|
@ -337,7 +337,13 @@ func resourceArmNetworkInterfaceIpConfigurationHash(v interface{}) int {
|
||||||
m := v.(map[string]interface{})
|
m := v.(map[string]interface{})
|
||||||
buf.WriteString(fmt.Sprintf("%s-", m["name"].(string)))
|
buf.WriteString(fmt.Sprintf("%s-", m["name"].(string)))
|
||||||
buf.WriteString(fmt.Sprintf("%s-", m["subnet_id"].(string)))
|
buf.WriteString(fmt.Sprintf("%s-", m["subnet_id"].(string)))
|
||||||
|
if m["private_ip_address"] != nil {
|
||||||
|
buf.WriteString(fmt.Sprintf("%s-", m["private_ip_address"].(string)))
|
||||||
|
}
|
||||||
buf.WriteString(fmt.Sprintf("%s-", m["private_ip_address_allocation"].(string)))
|
buf.WriteString(fmt.Sprintf("%s-", m["private_ip_address_allocation"].(string)))
|
||||||
|
if m["public_ip_address_id"] != nil {
|
||||||
|
buf.WriteString(fmt.Sprintf("%s-", m["public_ip_address_id"].(string)))
|
||||||
|
}
|
||||||
|
|
||||||
return hashcode.String(buf.String())
|
return hashcode.String(buf.String())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue