Add support for image name end with .raw

Change-Id: If3bd42825a29755fa8e68fa5661d068c6f0019d2
This commit is contained in:
Angel Noam 2017-05-11 15:13:29 +03:00
parent 27df725179
commit f24e29920b
1 changed files with 5 additions and 0 deletions

View File

@ -310,6 +310,11 @@ function upload_image {
disk_format=qcow2
container_format=bare
;;
*.raw)
image_name=$(basename "$image" ".raw")
disk_format=raw
container_format=bare
;;
*.iso)
image_name=$(basename "$image" ".iso")
disk_format=iso