Try to delete nodes in all cloud zones (#3874)
This commit is contained in:
parent
96425fb520
commit
8999bfef65
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue