diff --git a/src/tm_mad/ssh/cpds b/src/tm_mad/ssh/cpds index 5ec0bbb55d..ae542c4b8b 100755 --- a/src/tm_mad/ssh/cpds +++ b/src/tm_mad/ssh/cpds @@ -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"