Skip to content

Commit 5328363

Browse files
author
Himani Anil Deshpande
committed
Remove conversion to integer as null string will be converted to 0
1 parent 36958cd commit 5328363

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
@@ -213,7 +213,7 @@ def check_for_protected_mode(fleet_status_command) # rubocop:disable Lint/Nested
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.to_i}").stdout.strip.empty?
216+
until shell_out!("/bin/bash -c /usr/local/bin/is_fleet_ready.sh #{get_static_node_count}").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)