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