Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
fc9649db
Commit
fc9649db
authored
Apr 04, 2017
by
neilpang
Browse files
fix aws
parent
1f4e64f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_aws.sh
View file @
fc9649db
...
...
@@ -92,7 +92,7 @@ _get_root() {
_debug
"IsTruncated"
_nextMarker
=
"
$(
echo
"
$response
"
| _egrep_o
"<NextMarker>.*</NextMarker>"
|
cut
-d
'>'
-f
2 |
cut
-d
'<'
-f
1
)
"
_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"
i
=
2
p
=
1
...
...
@@ -220,7 +220,7 @@ aws_rest() {
_H2
=
"Authorization:
$Authorization
"
_debug _H2
"
$_H2
"
url
=
"
$AWS_URL
/
$ep
"
url
=
"
$AWS_URL
/
$ep
?
$qsr
"
if
[
"
$mtd
"
=
"GET"
]
;
then
response
=
"
$(
_get
"
$url
"
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment