1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

Feature #4217: Minor improvement

This commit is contained in:
Jaime Melis 2016-01-25 16:43:21 +01:00
parent 44111d5f1f
commit 1d5fe15c10

View File

@ -70,8 +70,8 @@ PUBLIC_DIR="${XPATH_ELEMENTS[i++]}"
# -------- Copy source to public folder an generarte App data ------------
APPNAME=`generate_image_hash`
DST_PATH="${PUBLIC_DIR}/${APPNAME}"
SOURCE="${BASE_URL}/${APPNAME}"
DST_PATH="${PUBLIC_DIR%/}/${APPNAME}"
SOURCE="${BASE_URL%/}/${APPNAME}"
if [ -n "$BRIDGE_LIST" ]; then
DST_HOST=`get_destination_host $ID`
@ -88,17 +88,14 @@ else
exec_and_log "$CP_CMD" "Error copying ${IMPORT_SOURCE} to ${DST_PATH}"
if [ "${DISPOSE}" = "YES" ]; then
#TODO This should call a ds operation
#TODO This should call a ds operation
exec_and_log "$RM ${IMPORT_SOURCE}" "Error removing ${IMPORT_SOURCE}"
fi
fi
RESPONSE=$(cat << EOF
cat << EOF
SOURCE="$SOURCE"
MD5="$MD5"
SIZE="$SIZE"
FORMAT="$FORMAT"
EOF
)
echo "$RESPONSE"