diff --git a/xoce-import.sh b/xoce-import.sh index 92b6ec1..1dcc8d3 100644 --- a/xoce-import.sh +++ b/xoce-import.sh @@ -49,7 +49,7 @@ uuid=$(xe vm-import url="$XOCE_URL" 2> /dev/null) import=$? if [ $import -ne 0 ] then - uuid=$(curl "$XOCE_URL" -c -| xe vm-import filename=/dev/stdin 2>&1) + uuid=$(curl "$XOCE_URL" -L -O -c -| xe vm-import filename=/dev/stdin 2>&1) fi # If it fails again (for any reason), we stop the script