Skip to content

Commit

Permalink
main.tf: public_ip_address_id change from "" to null
Browse files Browse the repository at this point in the history
  • Loading branch information
oraziobattaglia committed Jul 25, 2023
1 parent c6f81c7 commit d248079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ resource "azurerm_network_interface" "nic" {
subnet_id = var.subnet_id
private_ip_address_allocation = var.private_ip_address_allocation
private_ip_address = length(var.private_ip_addresses) > 0 ? var.private_ip_addresses[count.index] : ""
public_ip_address_id = length(var.public_ip_addresses) > 0 ? var.public_ip_addresses[count.index] : ""
public_ip_address_id = length(var.public_ip_addresses) > 0 ? var.public_ip_addresses[count.index] : null
}

tags = var.tags
Expand Down

0 comments on commit d248079

Please sign in to comment.