Skip to content

Commit

Permalink
fix default value for count
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitkinra committed Jul 12, 2024
1 parent e001029 commit d3330cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion community/modules/compute/gke-node-pool/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ resource "google_container_node_pool" "node_pool" {
for_each = local.guest_accelerator
content {
type = coalesce(guest_accelerator.value.type, try(local.generated_guest_accelerator[0].type, ""))
count = coalesce(try(guest_accelerator.value.count, 0) > 0 ? guest_accelerator.value.count : try(local.generated_guest_accelerator[0].count, ""))
count = coalesce(try(guest_accelerator.value.count, 0) > 0 ? guest_accelerator.value.count : try(local.generated_guest_accelerator[0].count, "0"))
gpu_driver_installation_config = coalescelist(try(guest_accelerator.value.gpu_driver_installation_config, []), [{ gpu_driver_version = "DEFAULT" }])
gpu_partition_size = try(guest_accelerator.value.gpu_partition_size, "")
gpu_sharing_config = try(guest_accelerator.value.gpu_sharing_config, [])
Expand Down

0 comments on commit d3330cc

Please sign in to comment.