Browse Source

fix linting

pull/2836/head
Les Aker 3 years ago
parent
commit
ac1731a36c
  1. 8
      dnsapi/dns_aws.sh

8
dnsapi/dns_aws.sh

@ -44,12 +44,10 @@ dns_aws_add() {
_saveaccountconf_mutable AWS_SECRET_ACCESS_KEY "$AWS_SECRET_ACCESS_KEY" _saveaccountconf_mutable AWS_SECRET_ACCESS_KEY "$AWS_SECRET_ACCESS_KEY"
fi fi
_saveaccountconf_mutable AWS_DNS_SLOWRATE "$AWS_DNS_SLOWRATE" _saveaccountconf_mutable AWS_DNS_SLOWRATE "$AWS_DNS_SLOWRATE"
_saveaccountconf_mutable AWS_ZONE_ID "$AWS_ZONE_ID" _saveaccountconf_mutable AWS_ZONE_ID "$AWS_ZONE_ID"
if [ -n "$AWS_ZONE_ID" ] ; then
if [ -n "$AWS_ZONE_ID" ]; then
_debug "Using hardcoded zone ID" _debug "Using hardcoded zone ID"
_domain_id="/hostedzone/$AWS_ZONE_ID" _domain_id="/hostedzone/$AWS_ZONE_ID"
else else
@ -114,7 +112,7 @@ dns_aws_rm() {
_use_container_role || _use_instance_role _use_container_role || _use_instance_role
fi fi
if [ -n "$AWS_ZONE_ID" ] ; then
if [ -n "$AWS_ZONE_ID" ]; then
_debug "Using hardcoded zone ID" _debug "Using hardcoded zone ID"
_domain_id="/hostedzone/${AWS_ZONE_ID}" _domain_id="/hostedzone/${AWS_ZONE_ID}"
else else
@ -165,7 +163,6 @@ dns_aws_rm() {
_get_root() { _get_root() {
domain=$1 domain=$1
i=1 i=1
p=1
# iterate over names (a.b.c.d -> b.c.d -> c.d -> d) # iterate over names (a.b.c.d -> b.c.d -> c.d -> d)
while true; do while true; do
@ -201,7 +198,6 @@ _get_root() {
_debug "Checking domain: $h - Next Page " _debug "Checking domain: $h - Next Page "
aws_rest GET "2013-04-01/hostedzone" "marker=$_nextMarker" aws_rest GET "2013-04-01/hostedzone" "marker=$_nextMarker"
done done
p=$i
i=$(_math "$i" + 1) i=$(_math "$i" + 1)
done done
return 1 return 1

Loading…
Cancel
Save