From 255db3da19c11ce3b6d7dbbb871a57d7df215aae Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Fri, 27 Apr 2012 15:29:14 -0500 Subject: [PATCH] Update quantum.sh for glance client change Change-Id: Ib67301b26e1c3e1b68669eed6cd89e40687b14e9 --- exercises/quantum.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/quantum.sh b/exercises/quantum.sh index 943a07d7ee..a6df76562e 100755 --- a/exercises/quantum.sh +++ b/exercises/quantum.sh @@ -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" }