Merge "Do not upload vhdx images as vhd"

This commit is contained in:
Jenkins 2017-05-26 19:33:35 +00:00 committed by Gerrit Code Review
commit 202470eca1
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ function upload_image {
*.vhd|*.vhdx|*.vhd.gz|*.vhdx.gz)
local extension="${image_fname#*.}"
image_name=$(basename "$image" ".$extension")
disk_format=vhd
disk_format=$(echo $image_fname | grep -oP '(?<=\.)vhdx?(?=\.|$)')
container_format=bare
if [ "${image_fname##*.}" == "gz" ]; then
unpack=zcat