From 0680204b1f437f140d6b4ef8f81e587dce4cb17b Mon Sep 17 00:00:00 2001 From: Jonathan Michalon Date: Thu, 21 Mar 2013 14:29:58 +0100 Subject: [PATCH] Add support for iso files as glance images Change-Id: Id1731c1a0a579fab44bb3944d2369b3feecf15d2 --- functions | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functions b/functions index fe5054739d..15901662b8 100644 --- a/functions +++ b/functions @@ -1148,6 +1148,12 @@ function upload_image() { DISK_FORMAT=qcow2 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;; esac