neilpang 8 years ago
parent
commit
fc9649dbc4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dnsapi/dns_aws.sh

+ 2 - 2
dnsapi/dns_aws.sh

@@ -92,7 +92,7 @@ _get_root() {
           _debug "IsTruncated"
           _debug "IsTruncated"
           _nextMarker="$(echo "$response" | _egrep_o "<NextMarker>.*</NextMarker>" | cut -d '>' -f 2 | cut -d '<' -f 1)"
           _nextMarker="$(echo "$response" | _egrep_o "<NextMarker>.*</NextMarker>" | cut -d '>' -f 2 | cut -d '<' -f 1)"
           _debug "NextMarker" "$_nextMarker"
           _debug "NextMarker" "$_nextMarker"
-          if aws_rest GET "2013-04-01/hostedzone?marker=$_nextMarker"; then
+          if aws_rest GET "2013-04-01/hostedzone" "marker=$_nextMarker"; then
             _debug "Truncated request OK"
             _debug "Truncated request OK"
             i=2
             i=2
             p=1
             p=1
@@ -220,7 +220,7 @@ aws_rest() {
   _H2="Authorization: $Authorization"
   _H2="Authorization: $Authorization"
   _debug _H2 "$_H2"
   _debug _H2 "$_H2"
 
 
-  url="$AWS_URL/$ep"
+  url="$AWS_URL/$ep?$qsr"
 
 
   if [ "$mtd" = "GET" ]; then
   if [ "$mtd" = "GET" ]; then
     response="$(_get "$url")"
     response="$(_get "$url")"