Commit 63165764 authored by Ivanovitch_k's avatar Ivanovitch_k
Browse files

dns_ovh: fix random add/remove txt records failures

due to inconsistent curl api response json
parent 103810ce
......@@ -261,7 +261,9 @@ _get_root() {
return 1
fi
if ! _contains "$response" "This service does not exist" >/dev/null && ! _contains "$response" "NOT_GRANTED_CALL" >/dev/null; then
if ! _contains "$response" "This service does not exist" >/dev/null && \
! _contains "$response" "This call has not been granted" >/dev/null && \
! _contains "$response" "NOT_GRANTED_CALL" >/dev/null; then
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
_domain="$h"
return 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment