mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-06 14:13:16 -06:00
a869d2f8a9
apply The IP COnfiguration block of `azurerm_network_interface` didn't have a hash created in a way that changes to the optional params were being picked up: ``` ~ azurerm_network_interface.test ip_configuration.273485505.name: "testconfiguration1" => "" ip_configuration.273485505.private_ip_address_allocation: "dynamic" => "" ip_configuration.273485505.subnet_id: "/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub" => "" ip_configuration.~273485505.load_balancer_backend_address_pools_ids.#: "" => "<computed>" ip_configuration.~273485505.load_balancer_inbound_nat_rules_ids.#: "" => "<computed>" ip_configuration.~273485505.name: "" => "testconfiguration1" ip_configuration.~273485505.private_ip_address: "" => "<computed>" ip_configuration.~273485505.private_ip_address_allocation: "" => "dynamic" ip_configuration.~273485505.public_ip_address_id: "" => "${azurerm_public_ip.test.id}" ip_configuration.~273485505.subnet_id: "" => "/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub" ``` This caused the following error: ``` Error applying plan: 1 error(s) occurred: * azurerm_network_interface.test: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue. Please include the following information in your report: ``` Notice that the hash didn't change. This change adds the remaining optional params to the hash so that the hash id will change. ``` ~ azurerm_network_interface.test ip_configuration.4255411321.load_balancer_backend_address_pools_ids.#: "" => "<computed>" ip_configuration.4255411321.load_balancer_inbound_nat_rules_ids.#: "" => "<computed>" ip_configuration.4255411321.name: "" => "testconfiguration1" ip_configuration.4255411321.private_ip_address: "" => "<computed>" ip_configuration.4255411321.private_ip_address_allocation: "" => "dynamic" ip_configuration.4255411321.public_ip_address_id: "" => "/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/acctestrg/providers/Microsoft.Network/publicIPAddresses/public-ip" ip_configuration.4255411321.subnet_id: "" => "/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub" ip_configuration.966273186.name: "testconfiguration1" => "" ip_configuration.966273186.private_ip_address_allocation: "dynamic" => "" ip_configuration.966273186.subnet_id: "/subscriptions/34ca515c-4629-458e-bf7c-738d77e0d0ea/resourceGroups/acctestrg/providers/Microsoft.Network/virtualNetworks/acctvn/subnets/acctsub" => "" ``` This allows the Update to work as expected :) ``` azurerm_network_interface.test: Modifications complete Apply complete! Resources: 0 added, 1 changed, 0 destroyed. ``` |
||
---|---|---|
.. | ||
config.go | ||
network_security_rule_test.go | ||
network_security_rule.go | ||
provider_test.go | ||
provider.go | ||
resource_arm_availability_set_test.go | ||
resource_arm_availability_set.go | ||
resource_arm_cdn_endpoint_test.go | ||
resource_arm_cdn_endpoint.go | ||
resource_arm_cdn_profile_test.go | ||
resource_arm_cdn_profile.go | ||
resource_arm_dns_a_record_test.go | ||
resource_arm_dns_a_record.go | ||
resource_arm_dns_aaaa_record_test.go | ||
resource_arm_dns_aaaa_record.go | ||
resource_arm_dns_cname_record_test.go | ||
resource_arm_dns_cname_record.go | ||
resource_arm_dns_mx_record_test.go | ||
resource_arm_dns_mx_record.go | ||
resource_arm_dns_ns_record_test.go | ||
resource_arm_dns_ns_record.go | ||
resource_arm_dns_srv_record_test.go | ||
resource_arm_dns_srv_record.go | ||
resource_arm_dns_txt_record_test.go | ||
resource_arm_dns_txt_record.go | ||
resource_arm_dns_zone_test.go | ||
resource_arm_dns_zone.go | ||
resource_arm_local_network_gateway_test.go | ||
resource_arm_local_network_gateway.go | ||
resource_arm_network_interface_card_test.go | ||
resource_arm_network_interface_card.go | ||
resource_arm_network_security_group_test.go | ||
resource_arm_network_security_group.go | ||
resource_arm_network_security_rule_test.go | ||
resource_arm_network_security_rule.go | ||
resource_arm_public_ip_test.go | ||
resource_arm_public_ip.go | ||
resource_arm_resource_group_test.go | ||
resource_arm_resource_group.go | ||
resource_arm_route_table_test.go | ||
resource_arm_route_table.go | ||
resource_arm_route_test.go | ||
resource_arm_route.go | ||
resource_arm_search_service_test.go | ||
resource_arm_search_service.go | ||
resource_arm_sql_database_test.go | ||
resource_arm_sql_database.go | ||
resource_arm_sql_firewall_rule_test.go | ||
resource_arm_sql_firewall_rule.go | ||
resource_arm_sql_server_test.go | ||
resource_arm_sql_server.go | ||
resource_arm_storage_account_test.go | ||
resource_arm_storage_account.go | ||
resource_arm_storage_blob_test.go | ||
resource_arm_storage_blob.go | ||
resource_arm_storage_container_test.go | ||
resource_arm_storage_container.go | ||
resource_arm_storage_queue_test.go | ||
resource_arm_storage_queue.go | ||
resource_arm_subnet_test.go | ||
resource_arm_subnet.go | ||
resource_arm_template_deployment_test.go | ||
resource_arm_template_deployment.go | ||
resource_arm_virtual_machine_test.go | ||
resource_arm_virtual_machine.go | ||
resource_arm_virtual_network_test.go | ||
resource_arm_virtual_network.go | ||
resourceid_test.go | ||
resourceid.go | ||
tags_test.go | ||
tags.go |