Skip to content

Commit

Permalink
replace coalesce with more succinct code snipped
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitkinra committed Nov 14, 2024
1 parent b31c740 commit b2cdd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/compute/gke-node-pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ resource "google_container_node_pool" "node_pool" {

dynamic "gpu_driver_installation_config" {
# in case user did not specify guest_accelerator settings, we need a try to default to []
for_each = coalescelist(try([ga.value.gpu_driver_installation_config], []), [{ gpu_driver_version = "DEFAULT" }])
for_each = try([ga.value.gpu_driver_installation_config], [{ gpu_driver_version = "DEFAULT" }])
iterator = gdic
content {
gpu_driver_version = gdic.value.gpu_driver_version
Expand Down

0 comments on commit b2cdd88

Please sign in to comment.