pull/3286/head
Gerardo 5 years ago committed by GitHub
parent 680106582b
commit 51668042e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -122,7 +122,6 @@ dns_aruba_add() {
_method="PUT"
fi
_payload="{ \"IdDomain\": $domain_id, \"Type\": \"TXT\", \"Name\": \"$_sub_domain\", \"Content\": \"\\\"$txtvalue\\\"\" }"
_info "Adding record"
@ -149,7 +148,6 @@ dns_aruba_rm() {
fi
_sub_domain="_acme-challenge"
_debug "Getting TXT record to delete: $_sub_domain.$_domain."
if ! _extract_record_id "$_sub_domain.$_domain"; then
@ -199,11 +197,9 @@ _extract_record_id() {
fi
n=$(_math "$n" + 1)
done
return 1
}
_aruba_authentication() {
export _H1="Content-Type: application/x-www-form-urlencoded"
export _H2="Authorization-Key: $ARUBA_TK"
@ -225,11 +221,9 @@ _aruba_authentication() {
ARUBA_CK="$access_token"
_saveaccountconf ARUBA_CK "$ARUBA_CK"
return 0
}
_aruba_rest() {
m=$1
ep="$2"
@ -244,7 +238,6 @@ _aruba_rest() {
export _H3="Authorization: Bearer $ARUBA_CK"
export _H4="Authorization-Key: $ARUBA_TK"
export _H5="Accept: application/json"
_debug2 _H3 "$_H3"
_debug2 _H4 "$_H4"
if [ "$data" ] || [ "$m" = "POST" ] || [ "$m" = "PUT" ] || [ "$m" = "DELETE" ]; then

Loading…
Cancel
Save