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:
parent
1572b7a964
commit
62e6e8a474
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user