Browse Source

fix format

pull/1229/head
neilpang 7 years ago
parent
commit
dd171ca44a
  1. 2
      dnsapi/dns_azure.sh
  2. 2
      dnsapi/dns_selectel.sh

2
dnsapi/dns_azure.sh

@ -194,7 +194,7 @@ _azure_getaccess_token() {
body="resource=$(printf "%s" 'https://management.core.windows.net/' | _url_encode)&client_id=$(printf "%s" "$clientID" | _url_encode)&client_secret=$(printf "%s" "$clientSecret" | _url_encode)&grant_type=client_credentials"
_debug data "$body"
response="$(_post "$body" "https://login.windows.net/$TENANTID/oauth2/token" "" "POST")"
accesstoken=$(echo "$response" | _egrep_o "\"access_token\":\"[^\"]*\"" | head -n 1 | cut -d : -f 2 | tr -d \")
accesstoken=$(echo "$response" | _egrep_o "\"access_token\":\"[^\"]*\"" | _head_n 1 | cut -d : -f 2 | tr -d \")
_debug2 "response $response"
if [ -z "$accesstoken" ]; then

2
dnsapi/dns_selectel.sh

@ -94,7 +94,7 @@ dns_selectel_rm() {
_err "Delete record error."
return 1
fi
return 0;
return 0
}
#################### Private functions below ##################################

Loading…
Cancel
Save