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
This commit is contained in:
parent
26087fd58c
commit
bca4b2880b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue