Add support for iso files as glance images

Change-Id: Id1731c1a0a579fab44bb3944d2369b3feecf15d2
This commit is contained in:
Jonathan Michalon 2013-03-21 14:29:58 +01:00
parent a2ae90fa02
commit 0680204b1f

View File

@ -1148,6 +1148,12 @@ function upload_image() {
DISK_FORMAT=qcow2 DISK_FORMAT=qcow2
CONTAINER_FORMAT=bare CONTAINER_FORMAT=bare
;; ;;
*.iso)
IMAGE="$FILES/${IMAGE_FNAME}"
IMAGE_NAME=$(basename "$IMAGE" ".iso")
DISK_FORMAT=iso
CONTAINER_FORMAT=bare
;;
*) echo "Do not know what to do with $IMAGE_FNAME"; false;; *) echo "Do not know what to do with $IMAGE_FNAME"; false;;
esac esac