Skip to content

Commit c31ae02

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Update quantum.sh for glance client change"
2 parents 96c984e + 255db3d commit c31ae02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/quantum.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ TOKEN=`keystone token-get | grep ' id ' | awk '{print $4}'`
103103
# Various functions.
104104
#------------------------------------------------------------------------------
105105
function get_image_id {
106-
local IMAGE_ID=`glance -f -A $TOKEN index | egrep $DEFAULT_IMAGE_NAME | head -1 | cut -d" " -f1`
106+
local IMAGE_ID=$(glance image-list | egrep " $DEFAULT_IMAGE_NAME " | get_field 1)
107107
echo "$IMAGE_ID"
108108
}
109109

0 commit comments

Comments
 (0)