Skip to content

Commit a4bb289

Browse files
author
Himani Anil Deshpande
committed
Adding logs and redirect python output to console
1 parent 3cf7016 commit a4bb289

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,12 @@ def check_for_protected_mode(fleet_status_command) # rubocop:disable Lint/Nested
208208
fleet_status_command = Shellwords.escape(
209209
"/usr/local/bin/get-compute-fleet-status.sh"
210210
)
211-
Chef::Log.info("TEST LOG #{get_static_node_count}")
211+
Chef::Log.info("Count of total Static Nodes is #{get_static_node_count.to_i}")
212212
# Example output for sinfo
213213
# sinfo -h -o '%N %t'
214214
# queue-0-dy-compute-resource-g4dn-0-[1-10],queue-1-dy-compute-resource-g4dn-1-[1-10] idle~
215215
# queue-2-dy-compute-resource-g4dn-2-[1-10],queue-3-dy-compute-resource-g4dn-3-[1-10] idle
216-
until shell_out!("/bin/bash -c /usr/local/bin/is_fleet_ready.sh #{get_static_node_count}").stdout.strip.empty?
216+
until shell_out!("/bin/bash /usr/local/bin/is_fleet_ready.sh #{get_static_node_count.to_i}").stdout.strip.empty?
217217
check_for_protected_mode(fleet_status_command)
218218

219219
Chef::Log.info("Waiting for static fleet capacity provisioning")

0 commit comments

Comments
 (0)