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

This commit is contained in:
Jan Orel authored and Sergio Betanzos committed 2021-07-13 17:57:13 +02:00
1 parent 4d80a8d725
commit 8c9d8087af
1 file changed
+3 -1
+3 -1
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