mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
B #2435: SSH TM disk-saveas doesn't respect snapshot ID
(cherry picked from commit 62e6e8a474)
This commit is contained in:
1 parent
3bbb72519d
commit
7bcca15cd7
1 file changed
+5
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user