Merge "detect failure of 'keystone token-get'"
This commit is contained in:
commit
21178a1c74
@ -102,6 +102,7 @@ KEYSTONE="keystone"
|
||||
# and save it.
|
||||
|
||||
TOKEN=`keystone token-get | grep ' id ' | awk '{print $4}'`
|
||||
die_if_not_set $LINENO TOKEN "Keystone fail to get token"
|
||||
|
||||
# Various functions
|
||||
# -----------------
|
||||
|
1
stack.sh
1
stack.sh
@ -1175,6 +1175,7 @@ fi
|
||||
|
||||
if is_service_enabled g-reg; then
|
||||
TOKEN=$(keystone token-get | grep ' id ' | get_field 2)
|
||||
die_if_not_set $LINENO TOKEN "Keystone fail to get token"
|
||||
|
||||
if is_baremetal; then
|
||||
echo_summary "Creating and uploading baremetal images"
|
||||
|
@ -33,6 +33,7 @@ fi
|
||||
|
||||
# Get a token to authenticate to glance
|
||||
TOKEN=$(keystone token-get | grep ' id ' | get_field 2)
|
||||
die_if_not_set $LINENO TOKEN "Keystone fail to get token"
|
||||
|
||||
# Glance connection info. Note the port must be specified.
|
||||
GLANCE_HOSTPORT=${GLANCE_HOSTPORT:-$GLANCE_HOST:9292}
|
||||
|
Loading…
Reference in New Issue
Block a user