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

bug #1652: Bug while determining image size from the Marketplace. Path from SZTAKI LPDS

This commit is contained in:
Ruben S. Montero 2012-11-13 22:21:06 +01:00
parent 25dd7a8f03
commit 6f05c3530d

View File

@ -131,7 +131,7 @@ function fs_size {
if [ $? -eq 0 ]; then
#URL is from market place
SIZE=`wget -O - -S --no-check-certificate $BASE_URL 2>&1|grep -E "^ *\"size\": \"?[0-9]+\"?$"|tr -dc 0-9`
SIZE=`wget -O - -S --no-check-certificate $BASE_URL 2>&1|grep -E "^ *\"size\": \"?[0-9]+\"?.$"|tr -dc 0-9`
else
#Not a marketplace URL
SIZE=`wget -S --spider --no-check-certificate $1 2>&1 | grep Content-Length | cut -d':' -f2`