From bca4b2880bc3d0da326f6938b0e983752bd71d3e Mon Sep 17 00:00:00 2001 From: Peter Stachowski Date: Mon, 12 Sep 2016 16:16:15 +0000 Subject: [PATCH] Define credentials before use In creating the flavors, the variable for credentials is used before it is defined. Although this doesn't seem to affect local use, it causes an error in the gate: ERROR (CommandError): You must provide a username or user ID ... This has been fixed. Change-Id: I5e85c537cf53b1557ca4feaa176484beb3788121 --- scripts/redstack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/redstack b/scripts/redstack index 0b5dbccb..3b5f691c 100755 --- a/scripts/redstack +++ b/scripts/redstack @@ -206,10 +206,10 @@ function add_flavor() { local FLAVOR_ROOT_GB=$4 local FLAVOR_VCPUS=$5 + credentials="--os-username=admin --os-password=$ADMIN_PASSWORD --os-tenant-name=admin --os-auth-url=$TROVE_AUTH_ENDPOINT" if [[ -z "$FLAVOR_LIST_FOR_ADD" ]]; then FLAVOR_LIST_FOR_ADD=$(nova $credentials flavor-list | cut -d'|' -f3 | sed -e's/ /,/g') fi - credentials="--os-username=admin --os-password=$ADMIN_PASSWORD --os-tenant-name=admin --os-auth-url=$TROVE_AUTH_ENDPOINT" base_id=${FLAVOR_ID} base_name_prefix=test