Merge "Update quantum.sh for glance client change"

This commit is contained in:
Jenkins 2012-05-02 16:08:50 +00:00 committed by Gerrit Code Review
commit c31ae025f9

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"
}