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

(cherry picked from commit 62e6e8a474)
This commit is contained in:
Vlastimil Holer authored and Ruben S. Montero committed 2018-09-19 12:33:09 +02:00
1 parent 3bbb72519d
commit 7bcca15cd7
1 file changed
+5
+5
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"