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
b9aa4f44
Commit
b9aa4f44
authored
Sep 23, 2021
by
Tom Cocca
Browse files
trigger a GH actions change
parent
8d3ad3a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_rackspace.sh
View file @
b9aa4f44
...
...
@@ -80,7 +80,7 @@ _get_root_zone() {
_debug2 response
"
$response
"
if
_contains
"
$response
"
"
\"
name
\"
:
\"
$h
\"
"
>
/dev/null
;
then
# Response looks like:
# {"id": "12345","accountId": "1111111","name": "example.com","ttl": 3600,"emailAddress": ...<and so on>
# {"id": "12345","accountId": "1111111","name": "example.com","ttl": 3600,"emailAddress": ...
<and so on>
_domain_id
=
$(
echo
"
$response
"
|
sed
-n
"s/^.*
\"
id
\"
:
\"\(
[^,]*
\)\"
,
\"
accountId
\"
:
\"
[0-9]*
\"
,
\"
name
\"
:
\"
$h
\"
,.*/
\1
/p"
)
_debug2 domain_id
"
$_domain_id
"
if
[
-n
"
$_domain_id
"
]
;
then
...
...
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