1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-04 17:47:00 +03:00

B #5444: Skip failed migration cleanup on SHARED (#1349)

This commit is contained in:
Jan Orel 2021-07-08 12:54:11 +02:00 committed by GitHub
parent 08312c7fbf
commit 2fef0c3823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,9 @@ if [ $RC -ne 0 ]; then
virsh --connect $QEMU_PROTOCOL://$DEST_HOST/system "${CLEAN_OP}" $DEPLOY_ID >/dev/null 2>&1
done
ssh $DEST_HOST "rm -rf $VM_DIR"
if [ "$SHARED" != "YES" ]; then
ssh $DEST_HOST "rm -rf $VM_DIR"
fi
error_message "Could not migrate $DEPLOY_ID to $DEST_HOST"
exit $RC