| ... | ... |
@@ -1175,6 +1175,7 @@ fi |
| 1175 | 1175 |
|
| 1176 | 1176 |
if is_service_enabled g-reg; then |
| 1177 | 1177 |
TOKEN=$(keystone token-get | grep ' id ' | get_field 2) |
| 1178 |
+ die_if_not_set $LINENO TOKEN "Keystone fail to get token" |
|
| 1178 | 1179 |
|
| 1179 | 1180 |
if is_baremetal; then |
| 1180 | 1181 |
echo_summary "Creating and uploading baremetal images" |
| ... | ... |
@@ -33,6 +33,7 @@ fi |
| 33 | 33 |
|
| 34 | 34 |
# Get a token to authenticate to glance |
| 35 | 35 |
TOKEN=$(keystone token-get | grep ' id ' | get_field 2) |
| 36 |
+die_if_not_set $LINENO TOKEN "Keystone fail to get token" |
|
| 36 | 37 |
|
| 37 | 38 |
# Glance connection info. Note the port must be specified. |
| 38 | 39 |
GLANCE_HOSTPORT=${GLANCE_HOSTPORT:-$GLANCE_HOST:9292}
|