]> git.proxmox.com Git - mirror_acme.sh.git/commitdiff
dns_ovh: fix random add/remove txt records failures
authorIvanovitch_k <ivanovitchk@gmail.com>
Wed, 21 Jul 2021 22:09:44 +0000 (00:09 +0200)
committerIvanovitch_k <ivanovitchk@gmail.com>
Wed, 21 Jul 2021 22:24:11 +0000 (00:24 +0200)
due to inconsistent curl api response json

dnsapi/dns_ovh.sh

index f6f9689a607cdb36f31f67ebac0776eb6605477b..b2c646fa22071db8f3c5d7c393edbc9ef4dafba8 100755 (executable)
@@ -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