瀏覽代碼

add _get_zone_id to dns_1984hosting_rm to get the zone id

Christophe B Billheimer 4 年之前
父節點
當前提交
c5c2014081
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      dnsapi/dns_1984hosting.sh

+ 3 - 1
dnsapi/dns_1984hosting.sh

@@ -96,7 +96,9 @@ dns_1984hosting_rm() {
 
   _debug "Delete $fulldomain TXT record"
   
-  _htmlget "$url/$zone_id" "$_sub_domain"
+  _get_zone_id
+
+  _htmlget "$url/$_zone_id" "$_sub_domain"
   _debug2 _response "$_response"
   entry_id="$(echo "$_response" | _egrep_o 'entry_[0-9]+' | sed 's/entry_//')"
   _debug2 entry_id "$entry_id"