From 1fc1e2cc0b6262af2a767d9091354519b216f509 Mon Sep 17 00:00:00 2001 From: Nicola Sirena Date: Mon, 9 Oct 2023 09:34:51 +0200 Subject: [PATCH] Avoid checking ScalingStrategy parameter at compile time Signed-off-by: Nicola Sirena --- .../recipes/config/config_slurm_resume.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/aws-parallelcluster-slurm/recipes/config/config_slurm_resume.rb b/cookbooks/aws-parallelcluster-slurm/recipes/config/config_slurm_resume.rb index 437193aaa..368508f47 100644 --- a/cookbooks/aws-parallelcluster-slurm/recipes/config/config_slurm_resume.rb +++ b/cookbooks/aws-parallelcluster-slurm/recipes/config/config_slurm_resume.rb @@ -51,6 +51,6 @@ head_node_hostname: on_docker? ? 'local_hostname' : node['ec2']['local_hostname'], clustermgtd_heartbeat_file_path: "#{node['cluster']['slurm']['install_dir']}/etc/pcluster/.slurm_plugin/clustermgtd_heartbeat", instance_id: on_docker? ? 'instance_id' : node['ec2']['instance_id'], - scaling_strategy: node['cluster']['config'].dig(:Scheduling, :ScalingStrategy) + scaling_strategy: lazy { node['cluster']['config'].dig(:Scheduling, :ScalingStrategy) } ) end