Skip to content

Commit

Permalink
Update ods_ci/tasks/Resources/Provisioning/GPU/gpu_deploy.sh
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
FedeAlonso and github-actions[bot] authored Oct 23, 2023
1 parent a355851 commit a01fe71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ods_ci/tasks/Resources/Provisioning/GPU/gpu_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ function rerun_accelerator_migration() {
SECONDS=0
while [ "$SECONDS" -le "$timeout_seconds" ]; do
dashboard_pods=$(oc get deployment rhods-dashboard -n redhat-ods-applications | grep rhods-dashboard | awk '{print $2;exit}')
dashboard_pods_total=$(echo $dashboard_pods | cut -c3-3)
dashboard_pods_avail=$(echo $dashboard_pods | cut -c1-1)
dashboard_pods_total=$(echo "$dashboard_pods" | cut -c3-3)
dashboard_pods_avail=$(echo "$dashboard_pods" | cut -c1-1)
((remaining_seconds = timeout_seconds - SECONDS))
echo "Dashboard pods: Available $dashboard_pods_avail out of $dashboard_pods_total ... (timeout in $remaining_seconds seconds)"
if [ "$dashboard_pods_avail" == "$dashboard_pods_total" ]; then
Expand Down

0 comments on commit a01fe71

Please sign in to comment.