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
7909273a
Commit
7909273a
authored
May 25, 2021
by
neilpang
Browse files
add debug info
parent
40e2ebed
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_ionos.sh
View file @
7909273a
...
@@ -149,14 +149,15 @@ _ionos_rest() {
...
@@ -149,14 +149,15 @@ _ionos_rest() {
response
=
"
$(
_post
"
$data
"
"
$IONOS_API$route
"
""
"
$method
"
"application/json"
)
"
response
=
"
$(
_post
"
$data
"
"
$IONOS_API$route
"
""
"
$method
"
"application/json"
)
"
else
else
export
_H2
=
"Accept: */*"
export
_H2
=
"Accept: */*"
export
_H3
=
response
=
"
$(
_get
"
$IONOS_API$route
"
)
"
response
=
"
$(
_get
"
$IONOS_API$route
"
)
"
fi
fi
if
[
"
$?
"
!=
"0"
]
;
then
if
[
"
$?
"
!=
"0"
]
;
then
_err
"Error
$route
"
_err
"Error
$route
:
$response
"
return
1
return
1
fi
fi
_debug2
"response"
"
$response
"
return
0
return
0
}
}
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