Skip to content

Commit

Permalink
Adding error check
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Aug 17, 2023
1 parent 10b8e8e commit ef184aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/k8s-slurmd-create
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ echo "Powering up hosts: $hosts" >> /var/log/slurm/power_save.log
for host in $hosts
do
echo "Creating $host" >> /var/log/slurm/power_save.log
sed s/SLURMD_NODENAME/$host/ /etc/slurm/slurmd-pod-template.yml | kubectl create -f - >> /var/log/slurm/power_save.log
sed s/SLURMD_NODENAME/$host/ /etc/slurm/slurmd-pod-template.yml | kubectl create -f - || echo "kubectl error" >> /var/log/slurm/power_save.log
echo "done" >> /var/log/slurm/power_save.log
done

0 comments on commit ef184aa

Please sign in to comment.