We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfa9b36 commit bd9d92bCopy full SHA for bd9d92b
infra/scripts/validate_model_deployment_quota.sh
@@ -68,9 +68,14 @@ while IFS= read -r deployment; do
68
./infra/scripts/validate_model_quota.sh --location "$LOCATION" --model "$model" --capacity $capacity --deployment-type $type
69
70
# Check if the script failed
71
- if [ $? -ne 0 ]; then
72
- echo "❌ ERROR: Quota validation failed for model deployment: $name"
73
- quotaAvailable=false
+ exit_code=$?
+ if [ $exit_code -ne 0 ]; then
+ if [ $exit_code -eq 2 ]; then
74
+ # Skip printing any quota validation error — already handled inside the validation script
75
+ exit 1
76
+ fi
77
+ echo "❌ ERROR: Quota validation failed for model deployment: $name"
78
+ quotaAvailable=false
79
fi
80
done <<< "$(echo "$aiModelDeployments")"
81
0 commit comments