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
441f8f3c
Commit
441f8f3c
authored
Aug 15, 2018
by
Janos Lenart
Browse files
Replied to PR comments
parent
1d4dec55
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_gcloud.sh
View file @
441f8f3c
...
...
@@ -77,7 +77,7 @@ _dns_gcloud_execute_tr() {
for
i
in
$(
seq
1 120
)
;
do
if
gcloud dns record-sets changes list
\
--zone
=
lenart
\
--zone
=
"
$managedZone
"
\
--filter
=
'status != done'
\
|
grep
-q
'^.*'
;
then
_info
"_dns_gcloud_execute_tr: waiting for transaction to be comitted (
$i
/120)..."
...
...
@@ -141,7 +141,7 @@ _dns_gcloud_find_zone() {
|
while
read
-r
dnsName name
;
do
printf
"%s
\t
%s
\t
%s
\n
"
"
${#
dnsName
}
"
"
$dnsName
"
"
$name
"
done
\
|
sort
-n
-r
|
head
-n
1
|
cut
-f2
,3 |
grep
'^.*'
)
;
then
|
sort
-n
-r
|
_
head
_n
1 |
cut
-f2
,3 |
grep
'^.*'
)
;
then
_err
"_dns_gcloud_find_zone: Can't find a matching managed zone! Perhaps wrong project or gcloud credentials?"
return
1
fi
...
...
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