From a1c87388a45ede40cb150a137560d0aeb50bee0c Mon Sep 17 00:00:00 2001 From: Jay Pipes Date: Fri, 27 Apr 2012 17:46:58 -0400 Subject: [PATCH] Fixes parsing of glance(client) image-list. There are still failures when tempest runs because of recent changes with glanceclient, but at least this patch gets the tools/configure_tempest working again. Change-Id: I73a5042dac2c930998663c478fb2ccd907c3ef87 --- tools/configure_tempest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/configure_tempest.sh b/tools/configure_tempest.sh index 0eacc4a7ab..dd43313607 100755 --- a/tools/configure_tempest.sh +++ b/tools/configure_tempest.sh @@ -67,11 +67,11 @@ fi # We ignore ramdisk and kernel images and set the IMAGE_UUID to # the first image returned and set IMAGE_UUID_ALT to the second, # if there is more than one returned... -IMAGE_LINES=`glance index` +IMAGE_LINES=`glance image-list` IFS="$(echo -e "\n\r")" IMAGES="" for line in $IMAGE_LINES; do - IMAGES="$IMAGES `echo $line | grep -v "^\(ID\|--\)" | grep -v "\(aki\|ari\)" | cut -d' ' -f1`" + IMAGES="$IMAGES `echo $line | grep -v "^\(ID\|+--\)" | grep -v "\(aki\|ari\)" | cut -d' ' -f2`" done # Create array of image UUIDs... IFS=" "