diff options
author | Peter Stachowski <peter@tesora.com> | 2016-09-12 16:16:15 +0000 |
---|---|---|
committer | Peter Stachowski <peter@tesora.com> | 2016-09-12 17:38:06 +0000 |
commit | bca4b2880bc3d0da326f6938b0e983752bd71d3e (patch) | |
tree | 3faf2e1335e809255738f97e0c0c36babc9d4d5e | |
parent | 26087fd58c4d9e39cdf12171266cb21c9f18e1bd (diff) | |
download | trove-integration-bca4b2880bc3d0da326f6938b0e983752bd71d3e.tar.gz |
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
-rwxr-xr-x | scripts/redstack | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/redstack b/scripts/redstack index 0b5dbcc..3b5f691 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 |