mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #3718: Remove snapshots as well as main image for DS_MAD=fs
This commit is contained in:
parent
fe07764cbf
commit
ad1bc3107d
@ -59,7 +59,7 @@ BASE_PATH="${XPATH_ELEMENTS[i++]}"
|
||||
if [ -n "$BRIDGE_LIST" ]; then
|
||||
DST_HOST=`get_destination_host $ID`
|
||||
|
||||
ssh_exec_and_log "$DST_HOST" "[ -f $SRC ] && rm -f $SRC" \
|
||||
ssh_exec_and_log "$DST_HOST" "[ -f $SRC ] && rm -rf $SRC $SRC.snap" \
|
||||
"Error deleting $SRC in $DST_HOST"
|
||||
else
|
||||
BASENAME_SRC=`basename "${SRC##$REMOTE_RM_CMD}"`
|
||||
@ -67,7 +67,7 @@ else
|
||||
then
|
||||
log "Removing $SRC from the image repository"
|
||||
|
||||
exec_and_log "rm -f $SRC" \
|
||||
exec_and_log "rm -rf $SRC $SRC.snap" \
|
||||
"Error deleting $SRC"
|
||||
else
|
||||
log_error "Bad formed or unavailable Image source: ${SRC}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user