Browse Source

Update dns_wts.sh

pull/6373/head
LukasWRN 7 months ago
committed by GitHub
parent
commit
2a62f8af8f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      dnsapi/dns_wts.sh

3
dnsapi/dns_wts.sh

@ -88,12 +88,13 @@ dns_wts_rm() {
_info "TXT record has been successfully deleted." _info "TXT record has been successfully deleted."
return 0 return 0
else else
if $WTS_API_Token == 0:
if [ -z "$TMP_RecordID" ]; then
_err "Errors happened during deleting the TXT record, because the temporary record-id from creation is not set." _err "Errors happened during deleting the TXT record, because the temporary record-id from creation is not set."
return 1 return 1
else: else:
_err "Errors happened during deleting the TXT record, response=$_response" _err "Errors happened during deleting the TXT record, response=$_response"
return 1 return 1
fi
fi fi
} }

Loading…
Cancel
Save