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
28ce1c12
Commit
28ce1c12
authored
Nov 23, 2020
by
Easton Man
Browse files
fix: fix wrong debug output
parent
7db592d2
Changes
1
Show whitespace changes
Inline
Side-by-side
dnsapi/dns_huaweicloud.sh
View file @
28ce1c12
...
...
@@ -66,7 +66,7 @@ dns_huaweicloud_rm() {
# Remove all records
while
[
"
${
record_id
}
"
!=
"0"
]
;
do
_debug
"
Add
ing Record"
_debug
"
Remov
ing Record"
_rm_record
"
${
token
}
"
"
${
zoneid
}
"
"
${
record_id
}
"
record_id
=
"
$(
_get_recordset_id
"
${
token
}
"
"
${
fulldomain
}
"
"
${
zoneid
}
"
)
"
done
...
...
@@ -158,7 +158,7 @@ _rm_record() {
export
_H2
=
"Content-Type: application/json"
export
_H1
=
"X-Auth-Token:
${
_token
}
"
_post
"
${
body
}
"
"
${
dns_api
}
/v2/zones/
${
_zone_id
}
/recordsets/
${
_record_id
}
"
false
"DELETE"
_post
"
${
body
}
"
"
${
dns_api
}
/v2/zones/
${
_zone_id
}
/recordsets/
${
_record_id
}
"
false
"DELETE"
>
/dev/null
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