Skip to content

Commit

Permalink
fix: Update public ip default value from "" to null
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgadgi committed May 19, 2023
1 parent 6c5516d commit 2fc88d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ resource "azurerm_network_interface" "default" {
subnet_id = var.private_ip_address_version == "IPv4" ? element(var.subnet_id, count.index) : ""
private_ip_address_version = var.private_ip_address_version
private_ip_address_allocation = var.private_ip_address_allocation
public_ip_address_id = var.public_ip_enabled ? element(azurerm_public_ip.default.*.id, count.index) : ""
public_ip_address_id = var.public_ip_enabled ? element(azurerm_public_ip.default.*.id, count.index) : null
primary = var.primary
private_ip_address = var.private_ip_address_allocation == "Static" ? element(var.private_ip_addresses, count.index) : ""
private_ip_address = var.private_ip_address_allocation == "Static" ? element(var.private_ip_addresses, count.index) : null
}

timeouts {
Expand Down

0 comments on commit 2fc88d4

Please sign in to comment.