Browse Source

Merge pull request #858 from yadutaf/jt-dns-ovh-scoped-credentials

Support OVH credentials scoped to a specific zone
neil 8 years ago
parent
commit
ec675b9ad2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dnsapi/dns_ovh.sh

+ 1 - 1
dnsapi/dns_ovh.sh

@@ -238,7 +238,7 @@ _get_root() {
       return 1
     fi
 
-    if ! _contains "$response" "This service does not exist" >/dev/null; then
+    if ! _contains "$response" "This service does not exist" >/dev/null && ! _contains "$response" "NOT_GRANTED_CALL" >/dev/null; then
       _sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p)
       _domain="$h"
       return 0