Add default delay for the calls to KAS api since they are very restrictive with that.

This commit is contained in:
Martin Kammerlander 2018-08-02 16:20:48 +02:00
parent c34aadfbf7
commit 68f66ca101

View File

@ -45,7 +45,8 @@ dns_kas_add() {
params="$params&kas_action=add_dns_settings" params="$params&kas_action=add_dns_settings"
params="$params&var5=zone_host" params="$params&var5=zone_host"
params="$params&wert5=$_zone" params="$params&wert5=$_zone"
_debug2 "Wait for 10 seconds by default before calling KAS API."
sleep 10
response="$(_get "$KAS_Api$params")" response="$(_get "$KAS_Api$params")"
_debug2 "response" "$response" _debug2 "response" "$response"
@ -76,6 +77,8 @@ dns_kas_rm() {
params="$params&kas_action=delete_dns_settings" params="$params&kas_action=delete_dns_settings"
params="$params&var1=record_id" params="$params&var1=record_id"
params="$params&wert1=$_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")" response="$(_get "$KAS_Api$params")"
_debug2 "response" "$response" _debug2 "response" "$response"
if ! _contains "$response" "TRUE"; then if ! _contains "$response" "TRUE"; then
@ -136,6 +139,8 @@ _get_record_id() {
params="$params&var1=zone_host" params="$params&var1=zone_host"
params="$params&wert1=$_zone" params="$params&wert1=$_zone"
_debug2 "Wait for 10 seconds by default before calling KAS API."
sleep 10
response="$(_get "$KAS_Api$params")" response="$(_get "$KAS_Api$params")"
_debug2 "response" "$response" _debug2 "response" "$response"