We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96c984e + 255db3d commit c31ae02Copy full SHA for c31ae02
exercises/quantum.sh
@@ -103,7 +103,7 @@ TOKEN=`keystone token-get | grep ' id ' | awk '{print $4}'`
103
# Various functions.
104
#------------------------------------------------------------------------------
105
function get_image_id {
106
- 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)
107
echo "$IMAGE_ID"
108
}
109
0 commit comments