Commit b1ac3d75 authored by Arie Peterson's avatar Arie Peterson 🐚
Browse files

Wait a second between detaching and reattaching

parent e6708890
......@@ -151,6 +151,12 @@ domount() {
then
exitWithFailure "$errorMessage"
fi
# Wait a little while, so that if the disk is in fact reattached to the
# same VPS, the VPS kernel gets a chance to recognise that the disk is gone
# before it is reinserted again.
sleep 1
# Now tell Cosmos2 to attach the disk to the right VPS.
if ! ghostAction "attach" "$apiToken" "$diskID" "$vpsID"
then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment