From 2fc88d42d9fa53f92ffd43aa26c57f1971dc7b38 Mon Sep 17 00:00:00 2001 From: nileshgadgi Date: Fri, 19 May 2023 23:02:52 +0530 Subject: [PATCH] fix: Update public ip default value from "" to null --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 6ca52b8..d55592b 100644 --- a/main.tf +++ b/main.tf @@ -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 {