format adjustment
This commit is contained in:
parent
c466f063c8
commit
bfba44fbad
@ -54,7 +54,7 @@ edgio_deploy() {
|
|||||||
_info "Getting access token"
|
_info "Getting access token"
|
||||||
_data="client_id=$EDGIO_CLIENT_ID&client_secret=$EDGIO_CLIENT_SECRET&grant_type=client_credentials&scope=app.config"
|
_data="client_id=$EDGIO_CLIENT_ID&client_secret=$EDGIO_CLIENT_SECRET&grant_type=client_credentials&scope=app.config"
|
||||||
_debug Get_access_token_data "$_data"
|
_debug Get_access_token_data "$_data"
|
||||||
_response=$(_post "$_data" "https://id.edgio.app/connect/token" "" "POST" "application/x-www-form-urlencoded" )
|
_response=$(_post "$_data" "https://id.edgio.app/connect/token" "" "POST" "application/x-www-form-urlencoded")
|
||||||
_debug Get_access_token_response "$_response"
|
_debug Get_access_token_response "$_response"
|
||||||
_access_token=$(echo "$_response" | _json_decode | _egrep_o '"access_token":"[^"]*' | cut -d : -f 2 | tr -d '"')
|
_access_token=$(echo "$_response" | _json_decode | _egrep_o '"access_token":"[^"]*' | cut -d : -f 2 | tr -d '"')
|
||||||
_debug _access_token "$_access_token"
|
_debug _access_token "$_access_token"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user