Block until instances are confirmed to be deleted
This commit is contained in:
parent
5741400713
commit
47ddbbe53b
|
@ -389,6 +389,14 @@ delete() {
|
|||
echo "No instances found matching '$filter'"
|
||||
else
|
||||
cloud_DeleteInstances true
|
||||
while true; do
|
||||
cloud_FindInstances "$filter"
|
||||
if [[ ${#instances[@]} -eq 0 ]]; then
|
||||
break;
|
||||
fi
|
||||
echo "(waiting for instances to be deleted)"
|
||||
sleep 3
|
||||
done
|
||||
fi
|
||||
done
|
||||
rm -f "$configFile"
|
||||
|
|
Loading…
Reference in New Issue