nits
This commit is contained in:
parent
f320fb4799
commit
f265bb9b58
@ -74,12 +74,12 @@ function currentProfile () {
|
||||
echo "Executing in '$(echo "${triton_account}" | awk 'NR == 1 {print $2}')' (${profile_source})"
|
||||
|
||||
# Check if CNS is enabled, require it
|
||||
if [ ! "true" == "$(echo "${triton_account}" | awk -F": " '/cns/{print $2}')" ]
|
||||
if [ ! "true" == "$(echo "${triton_account}" | awk -F": " '/^triton_cns_enabled:/{print $2}')" ]
|
||||
then
|
||||
echo
|
||||
tput rev # reverse
|
||||
tput bold # bold
|
||||
echo 'Error! Triton CNS is not enabled.'
|
||||
echo 'Warning! Triton CNS is not enabled.'
|
||||
tput sgr0 # clear
|
||||
echo
|
||||
echo 'Please run the following to activate:'
|
||||
@ -108,7 +108,7 @@ function cnsEnvVars () {
|
||||
fi
|
||||
|
||||
# Get the user's UUID
|
||||
local triton_account_uuid="$(echo "${triton_account}" | awk -F": " '/id:/{print $2}')"
|
||||
local triton_account_uuid="$(echo "${triton_account}" | awk -F": " '/^id:/{print $2}')"
|
||||
|
||||
# Get current data center name
|
||||
# Note: this makes assumptions that work in our public cloud, but might not work elsewhere
|
||||
|
Loading…
Reference in New Issue
Block a user