Block until instances are confirmed to be deleted

This commit is contained in:
Michael Vines
2019-03-14 15:54:19 -07:00
parent c60baf99f3
commit 5e40a5bfc1

View File

@ -391,6 +391,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"