Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle pod status error
Browse files Browse the repository at this point in the history
gargnitingoogle committed Sep 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8a8f442 commit b94e91f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -650,7 +650,7 @@ function waitTillAllPodsComplete() {
if [ ${num_completed_pods} -gt 0 ]; then
printf ${num_completed_pods}" pod(s) completed.\n"
fi
num_noncompleted_pods=$(echo "${podslist}" | tail -n +2 | grep -i -v 'completed\|succeeded\|fail' | wc -l)
num_noncompleted_pods=$(echo "${podslist}" | tail -n +2 | grep -i -v 'completed\|succeeded\|fail\|error' | wc -l)
num_failed_pods=$(echo "${podslist}" | tail -n +2 | grep -i 'failed' | wc -l)
if [ ${num_failed_pods} -gt 0 ]; then
printf ${num_failed_pods}" pod(s) failed.\n\n"

0 comments on commit b94e91f

Please sign in to comment.