From efe4236a647fd584ca0215946bda8348e31ae215 Mon Sep 17 00:00:00 2001 From: Ankit Kinra <1037624+ankitkinra@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:43:30 +0000 Subject: [PATCH] Fix a bug where try was hiding extraction of gpu driver version from customer --- modules/compute/gke-node-pool/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/compute/gke-node-pool/main.tf b/modules/compute/gke-node-pool/main.tf index 829383b5ba..e4bc94cbcc 100644 --- a/modules/compute/gke-node-pool/main.tf +++ b/modules/compute/gke-node-pool/main.tf @@ -93,7 +93,7 @@ resource "google_container_node_pool" "node_pool" { gpu_partition_size = try(ga.value.gpu_partition_size, null) dynamic "gpu_driver_installation_config" { - for_each = try([ga.gpu_driver_installation_config], [{ gpu_driver_version = "DEFAULT" }]) + for_each = coalescelist([ga.value.gpu_driver_installation_config], [{ gpu_driver_version = "DEFAULT" }]) iterator = gdic content { gpu_driver_version = gdic.value.gpu_driver_version