_get_root now does not skip the first label of the domain

This commit is contained in:
Stephen Dendtler 2021-01-11 13:03:42 +00:00 committed by Bernard Spil
parent 2629140d88
commit 1ef3efe793

View File

@ -79,7 +79,7 @@ dns_rackcorp_rm() {
# _domain=domain.com # _domain=domain.com
_get_root() { _get_root() {
domain=$1 domain=$1
i=2 i=1
p=1 p=1
if ! _rackcorp_api dns.domain.getall "\"name\":\"$domain\""; then if ! _rackcorp_api dns.domain.getall "\"name\":\"$domain\""; then
return 1 return 1