1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

B #2435: SSH TM disk-saveas doesn't respect snapshot ID

This commit is contained in:
Vlastimil Holer 2018-09-19 12:31:03 +02:00 committed by Ruben S. Montero
parent 1572b7a964
commit 62e6e8a474

View File

@ -40,6 +40,11 @@ fi
#-------------------------------------------------------------------------------
# Move the image back to the datastore
#-------------------------------------------------------------------------------
if [ "${SNAP_ID}" != "-1" ]; then
SRC="${SRC}.snap/${SNAP_ID}"
fi
log "Moving $SRC to datastore as $DST"
exec_and_log "$SCP -r $SRC $DST" "Error copying $SRC to $DST"