Browse Source

Travis refactoring 2

pull/3286/head
Gerardo 5 years ago
committed by GitHub
parent
commit
1ab4565e57
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      dnsapi/dns_aruba.sh

8
dnsapi/dns_aruba.sh

@ -45,7 +45,7 @@ _initAuth() {
if [ -z "$ARUBA_AK" ] || [ -z "$ARUBA_AS" ] || [ -z "$ARUBA_TK" ]; then
ARUBA_AK=""
ARUBA_AS=""
ARUBA_TK=""
ARUBA_TK=""
_err "You don't specify ARUBA application key and application secret yet."
_err "Please create you key and try again."
return 1
@ -53,7 +53,7 @@ _initAuth() {
if [ "$ARUBA_TK" != "$(_readaccountconf ARUBA_TK)" ]; then
_info "It seems that your aruba key is changed, let's clear consumer key first."
_clearaccountconf ARUBA_TK
_clearaccountconf ARUBA_TK
_clearaccountconf ARUBA_CK
fi
_saveaccountconf_mutable ARUBA_AK "$ARUBA_AK"
@ -153,7 +153,7 @@ dns_aruba_rm() {
_debug "Getting TXT record to delete: $_sub_domain.$_domain."
if ! _extract_record_id "$_sub_domain.$_domain"; then
return 1
return 1
fi
_debug "Deleting TXT record: $_sub_domain.$_domain"
@ -185,7 +185,7 @@ _extract_record_id() {
_debug printf "%s\t%s\n" "$i"
#_arrayname=$i
_arrayId=$j
_info "Found txt record id: $_arrayId"
_info "Found txt record id: $_arrayId"
fi
j=$(_math "$j" + 1)
done

Loading…
Cancel
Save