Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
71cfd874
Commit
71cfd874
authored
Mar 18, 2019
by
Sylvia van Os
Browse files
Fix SC2116
parent
08be0c37
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_openprovider.sh
View file @
71cfd874
...
@@ -233,7 +233,7 @@ _get_root() {
...
@@ -233,7 +233,7 @@ _get_root() {
_openprovider_request
()
{
_openprovider_request
()
{
request_xml
=
$1
request_xml
=
$1
xml_prefix
=
$(
echo
'<?xml version="1.0" encoding="UTF-8"?>'
)
xml_prefix
=
'<?xml version="1.0" encoding="UTF-8"?>'
xml_content
=
$(
printf
'<openXML><credentials><username>%s</username><hash>%s</hash></credentials>%s</openXML>'
"
$OPENPROVIDER_USER
"
"
$OPENPROVIDER_PASSWORDHASH
"
"
$request_xml
"
)
xml_content
=
$(
printf
'<openXML><credentials><username>%s</username><hash>%s</hash></credentials>%s</openXML>'
"
$OPENPROVIDER_USER
"
"
$OPENPROVIDER_PASSWORDHASH
"
"
$request_xml
"
)
response
=
"
$(
_post
"
$(
echo
"
$xml_prefix$xml_content
"
|
tr
-d
'\n'
)
"
"
$OPENPROVIDER_API
"
""
"POST"
"application/xml"
)
"
response
=
"
$(
_post
"
$(
echo
"
$xml_prefix$xml_content
"
|
tr
-d
'\n'
)
"
"
$OPENPROVIDER_API
"
""
"POST"
"application/xml"
)
"
_debug response
"
$response
"
_debug response
"
$response
"
...
...
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