Skip to content

Commit 8b8a35e

Browse files
committed
fix: Fallback to null for undefined subnet dns_label e.g. assign_dns = false
Signed-off-by: Devon Crouse <[email protected]>
1 parent 7c5c563 commit 8b8a35e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/network/subnets.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ resource "oci_core_subnet" "oke" {
127127
vcn_id = var.vcn_id
128128
cidr_block = lookup(local.subnet_cidrs_all, each.key)
129129
display_name = format("%v-%v", each.key, var.state_id)
130-
dns_label = lookup(local.subnet_dns_labels, each.key)
130+
dns_label = lookup(local.subnet_dns_labels, each.key, null)
131131
prohibit_public_ip_on_vnic = !tobool(lookup(each.value, "is_public", false))
132132
route_table_id = !tobool(lookup(each.value, "is_public", false)) ? var.nat_route_table_id : var.ig_route_table_id
133133
security_list_ids = compact([lookup(lookup(oci_core_security_list.oke, each.key, {}), "id", null)])

0 commit comments

Comments
 (0)