Explorar o código

Constellix made changes to their API. They added more search capabilities, but the changes are not backwards compatible. We need to use the `exact` parameter instead of `name` now.

Wout %!s(int64=5) %!d(string=hai) anos
pai
achega
e158b5ccf6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dnsapi/dns_constellix.sh

+ 1 - 1
dnsapi/dns_constellix.sh

@@ -86,7 +86,7 @@ _get_root() {
       return 1
     fi
 
-    if ! _constellix_rest GET "domains/search?name=$h"; then
+    if ! _constellix_rest GET "domains/search?exact=$h"; then
       return 1
     fi