Update quantum.sh for glance client change

Change-Id: Ib67301b26e1c3e1b68669eed6cd89e40687b14e9
This commit is contained in:
Dean Troyer 2012-04-27 15:29:14 -05:00
parent a1c87388a4
commit 255db3da19

View File

@ -103,7 +103,7 @@ TOKEN=`keystone token-get | grep ' id ' | awk '{print $4}'`
# Various functions.
#------------------------------------------------------------------------------
function get_image_id {
local IMAGE_ID=`glance -f -A $TOKEN index | egrep $DEFAULT_IMAGE_NAME | head -1 | cut -d" " -f1`
local IMAGE_ID=$(glance image-list | egrep " $DEFAULT_IMAGE_NAME " | get_field 1)
echo "$IMAGE_ID"
}