mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-23 21:51:41 +00:00
Add default delay for the calls to KAS api since they are very restrictive with that.
This commit is contained in:
parent
c34aadfbf7
commit
68f66ca101
@ -45,7 +45,8 @@ dns_kas_add() {
|
||||
params="$params&kas_action=add_dns_settings"
|
||||
params="$params&var5=zone_host"
|
||||
params="$params&wert5=$_zone"
|
||||
|
||||
_debug2 "Wait for 10 seconds by default before calling KAS API."
|
||||
sleep 10
|
||||
response="$(_get "$KAS_Api$params")"
|
||||
_debug2 "response" "$response"
|
||||
|
||||
@ -76,6 +77,8 @@ dns_kas_rm() {
|
||||
params="$params&kas_action=delete_dns_settings"
|
||||
params="$params&var1=record_id"
|
||||
params="$params&wert1=$_record_id"
|
||||
_debug2 "Wait for 10 seconds by default before calling KAS API."
|
||||
sleep 10
|
||||
response="$(_get "$KAS_Api$params")"
|
||||
_debug2 "response" "$response"
|
||||
if ! _contains "$response" "TRUE"; then
|
||||
@ -136,6 +139,8 @@ _get_record_id() {
|
||||
params="$params&var1=zone_host"
|
||||
params="$params&wert1=$_zone"
|
||||
|
||||
_debug2 "Wait for 10 seconds by default before calling KAS API."
|
||||
sleep 10
|
||||
response="$(_get "$KAS_Api$params")"
|
||||
_debug2 "response" "$response"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user