This commit is contained in:
alviy 2024-04-25 22:15:16 +03:00 committed by GitHub
parent 2fcda9a73a
commit 2e9f159225
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ dns_alviy_rm() {
fi fi
_add_data="" _add_data=""
uuid=$(echo "$response" |tr "{" "\n"|grep "$txtvalue"|tr "," "\n"|grep uuid|cut -d \" -f4) uuid=$(echo "$response" | tr "{" "\n" | grep "$txtvalue" | tr "," "\n" | grep uuid | cut -d \" -f4)
# delete record # delete record
_debug "Delete TXT record for '${fulldomain}'" _debug "Delete TXT record for '${fulldomain}'"
if ! _alviy_rest DELETE "zone/$_domain/record/$uuid" "{\"confirm\":1}"; then if ! _alviy_rest DELETE "zone/$_domain/record/$uuid" "{\"confirm\":1}"; then
@ -168,7 +168,6 @@ _alviy_rest() {
return 1 return 1
fi fi
if [ "$_code" != "200" ]; then if [ "$_code" != "200" ]; then
_err "API call error ($method): $path Response code $_code" _err "API call error ($method): $path Response code $_code"
fi fi
@ -180,4 +179,3 @@ _alviy_rest() {
_debug2 response "$response" _debug2 response "$response"
return 0 return 0
} }