From 77451250cfd9372a48f52a998f3860ad0541e15b Mon Sep 17 00:00:00 2001 From: Ed Beaty Date: Fri, 31 Jan 2025 02:53:22 -0800 Subject: [PATCH] . --- modules/aws/node/main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/aws/node/main.tf b/modules/aws/node/main.tf index 158578e..53c1ffb 100644 --- a/modules/aws/node/main.tf +++ b/modules/aws/node/main.tf @@ -47,7 +47,7 @@ module "node_props" { locals { hugepages_gb = try( - coalesce(var.hugepages_gb, try(module.node_props[0].hugepages_gb, null)), + coalesce(var.hugepages_gb, local.node_props_required ? module.node_props.hugepages_gb : null), null, ) @@ -55,7 +55,7 @@ locals { var.isolated_cores != null ? null : try( - coalesce(var.xrd_vr_cpuset, try(module.node_props[0].cpuset, null)), + coalesce(var.xrd_vr_cpuset, local.node_props_required ? module.node_props.cpuset : null), null, ) ) @@ -72,7 +72,7 @@ locals { var.isolated_cores != null ? null : try( - coalesce(var.xrd_vr_cp_num_cpus, try(module.node_props[0].cp_num_cpus, null)), + coalesce(var.xrd_vr_cp_num_cpus, local.node_props_required ? module.node_props.cp_num_cpus, null), null, ) )