Skip to content

Commit a1c8738

Browse files
committed
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
1 parent 4549525 commit a1c8738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/configure_tempest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ fi
6767
# We ignore ramdisk and kernel images and set the IMAGE_UUID to
6868
# the first image returned and set IMAGE_UUID_ALT to the second,
6969
# if there is more than one returned...
70-
IMAGE_LINES=`glance index`
70+
IMAGE_LINES=`glance image-list`
7171
IFS="$(echo -e "\n\r")"
7272
IMAGES=""
7373
for line in $IMAGE_LINES; do
74-
IMAGES="$IMAGES `echo $line | grep -v "^\(ID\|--\)" | grep -v "\(aki\|ari\)" | cut -d' ' -f1`"
74+
IMAGES="$IMAGES `echo $line | grep -v "^\(ID\|+--\)" | grep -v "\(aki\|ari\)" | cut -d' ' -f2`"
7575
done
7676
# Create array of image UUIDs...
7777
IFS=" "

0 commit comments

Comments
 (0)