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
This commit is contained in:
parent
45495258d6
commit
a1c87388a4
@ -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=" "
|
||||
|
Loading…
Reference in New Issue
Block a user