From ac1731a36c449ba21192e9d9f596e093011dbf27 Mon Sep 17 00:00:00 2001 From: Les Aker Date: Tue, 11 Oct 2022 19:47:26 -0400 Subject: [PATCH] fix linting --- dnsapi/dns_aws.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dnsapi/dns_aws.sh b/dnsapi/dns_aws.sh index c856a89b..3ab7d43e 100755 --- a/dnsapi/dns_aws.sh +++ b/dnsapi/dns_aws.sh @@ -44,12 +44,10 @@ dns_aws_add() { _saveaccountconf_mutable AWS_SECRET_ACCESS_KEY "$AWS_SECRET_ACCESS_KEY" fi - _saveaccountconf_mutable AWS_DNS_SLOWRATE "$AWS_DNS_SLOWRATE" _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" _domain_id="/hostedzone/$AWS_ZONE_ID" else @@ -114,7 +112,7 @@ dns_aws_rm() { _use_container_role || _use_instance_role fi - if [ -n "$AWS_ZONE_ID" ] ; then + if [ -n "$AWS_ZONE_ID" ]; then _debug "Using hardcoded zone ID" _domain_id="/hostedzone/${AWS_ZONE_ID}" else @@ -165,7 +163,6 @@ dns_aws_rm() { _get_root() { domain=$1 i=1 - p=1 # iterate over names (a.b.c.d -> b.c.d -> c.d -> d) while true; do @@ -201,7 +198,6 @@ _get_root() { _debug "Checking domain: $h - Next Page " aws_rest GET "2013-04-01/hostedzone" "marker=$_nextMarker" done - p=$i i=$(_math "$i" + 1) done return 1