Skip to content
Permalink
Browse files

minor

  • Loading branch information
neilpang
neilpang committed Nov 16, 2019
1 parent aac9f08 commit c282dd086fe0fc2152f7d47fb4ee1885f26aec09
Showing with 1 addition and 1 deletion.
  1. +1 −1 dnsapi/dns_nic.sh
@@ -89,7 +89,7 @@ dns_nic_rm() {
return 1
fi

_domain_id=$(printf "%s" "$response" | grep "$_sub_domain" | grep "$txtvalue" | sed -r "s/.*<rr id=\"(.*)\".*/\1/g")
_domain_id=$(printf "%s" "$response" | grep "$_sub_domain" | grep -- "$txtvalue" | sed -r "s/.*<rr id=\"(.*)\".*/\1/g")

if ! _nic_rest DELETE "services/$_service/zones/$_domain/records/$_domain_id"; then
_err "Delete record error"

0 comments on commit c282dd0

Please sign in to comment.
You can’t perform that action at this time.