Skip to content

Commit 1517d46

Browse files
committed
Fix job thresholds logic
1 parent aaf18a3 commit 1517d46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

check_kubernetes.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,10 +694,10 @@ mode_jobs() {
694694
EXITCODE=2
695695
fi
696696
done
697-
if [ "$total_failed_count" -ge "${WARN}" ]; then
698-
EXITCODE=1
699-
elif [ "$total_failed_count" -ge "${CRIT}" ]; then
697+
if [ "$total_failed_count" -ge "${CRIT}" ]; then
700698
EXITCODE=2
699+
elif [ "$total_failed_count" -ge "${WARN}" ]; then
700+
EXITCODE=1
701701
fi
702702
done
703703

0 commit comments

Comments
 (0)