Skip to content

Commit 8b1a85a

Browse files
authored
Fix failure when missing property in dna.json
If cw_logging_enabled is missing from dna.json, clustermgtd fails to start due to an unparsable boolean value. This change provides a default value of true to the clustermgtd.conf template if the property is missing.
1 parent f5d6eb4 commit 8b1a85a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbooks/aws-parallelcluster-slurm/templates/default/slurm/parallelcluster_clustermgtd.conf.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ head_node_private_ip = <%= node['ec2']['local_ipv4'] %>
1111
head_node_hostname = <%= node['ec2']['local_hostname'] %>
1212
node_replacement_timeout = <%= node['cluster']['compute_node_bootstrap_timeout'] %>
1313
insufficient_capacity_timeout = 600
14-
compute_console_logging_enabled = <%= node['cluster']['cw_logging_enabled'] %>
14+
compute_console_logging_enabled = <%= node['cluster']['cw_logging_enabled'] || true %>
1515
compute_console_logging_max_sample_size = <%= node['cluster']['slurm_plugin_console_logging']['sample_size'] %>
1616
compute_console_wait_time = 300

0 commit comments

Comments
 (0)