Merge pull request #9207 from BedeGaming/azurerm-nic-hash

provider/azurerm: write load_balanacer attributes to network_interface_card hash
This commit is contained in:
Paul Stack 2016-10-24 14:26:20 +01:00 committed by GitHub
commit 3f16f3d4c9
1 changed files with 6 additions and 0 deletions

View File

@ -328,6 +328,12 @@ func resourceArmNetworkInterfaceIpConfigurationHash(v interface{}) int {
if m["public_ip_address_id"] != nil {
buf.WriteString(fmt.Sprintf("%s-", m["public_ip_address_id"].(string)))
}
if m["load_balancer_backend_address_pools_ids"] != nil {
buf.WriteString(fmt.Sprintf("%s-", m["load_balancer_backend_address_pools_ids"].(*schema.Set).GoString()))
}
if m["load_balancer_inbound_nat_rules_ids"] != nil {
buf.WriteString(fmt.Sprintf("%s-", m["load_balancer_inbound_nat_rules_ids"].(*schema.Set).GoString()))
}
return hashcode.String(buf.String())
}