From 84fbd1fa0df737accffd61d7fbbe8febee18b56e Mon Sep 17 00:00:00 2001 From: Tom Downes Date: Fri, 8 Sep 2023 14:40:05 -0500 Subject: [PATCH] fix: remove unnecessary validation block (#335) --- modules/instance_template/variables.tf | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/instance_template/variables.tf b/modules/instance_template/variables.tf index 7aec8575..b46426af 100644 --- a/modules/instance_template/variables.tf +++ b/modules/instance_template/variables.tf @@ -230,12 +230,6 @@ variable "additional_networks" { subnetwork_range_name = string })) })) - validation { - condition = alltrue([ - for ni in var.additional_networks : (ni.network == null) != (ni.subnetwork == null) - ]) - error_message = "All additional network interfaces must define exactly one of \"network\" or \"subnetwork\"." - } validation { condition = alltrue([ for ni in var.additional_networks : ni.nic_type == "GVNIC" || ni.nic_type == "VIRTIO_NET" || ni.nic_type == null