Commit 500a005a authored by Stephen Dendtler's avatar Stephen Dendtler
Browse files

_get_root now does not skip the first label of the domain

parent b79f63db
...@@ -79,7 +79,7 @@ dns_rackcorp_rm() { ...@@ -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
......
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