Try to delete nodes in all cloud zones (#3874)

This commit is contained in:
Pankaj Garg 2019-04-18 13:16:14 -07:00 committed by GitHub
parent 96425fb520
commit 8999bfef65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -208,10 +208,11 @@ cloud_DeleteInstances() {
declare names=("${instances[@]/:*/}")
declare zones=("${instances[@]/*:/}")
(
for zone in "${zones[@]}"; do
set -x
gcloud beta compute instances delete --zone "${zones[0]}" --quiet "${names[@]}"
)
# Try deleting instances in all zones
gcloud beta compute instances delete --zone "$zone" --quiet "${names[@]}" || true
done
}