Skip to content

Commit 23c827b

Browse files
author
Himani Anil Deshpande
committed
Adding logs and redirect python output to console
1 parent 7335500 commit 23c827b

File tree

1 file changed

+1
-1
lines changed
  • cookbooks/aws-parallelcluster-slurm/libraries

1 file changed

+1
-1
lines changed

cookbooks/aws-parallelcluster-slurm/libraries/helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def wait_cluster_ready
179179
end
180180

181181
def get_static_node_count
182-
cmd = Mixlib::ShellOut.new("cat #{node['cluster']['slurm']['install_dir']}/etc/slurm_parallelcluster.conf | grep -o '#TOTAL_MIN_COUNT=\([0-9]*\)' | cut -d'=' -f2")
182+
cmd = Mixlib::ShellOut.new("#{cookbook_virtualenv_path}/bin/python #{node['cluster']['scripts_dir']}/slurm/pcluster_fleet_config_generator.py --input-file #{node['cluster']['cluster_config_path']} --total-min-count | grep -o 'The total MinCount of cluster is =\([0-9]*\)' | cut -d'=' -f2")
183183
cmd.run_command.stdout.strip
184184
end
185185

0 commit comments

Comments
 (0)