removed the _clearaccountconf() call for erroneous requests

This commit is contained in:
Ne-Lexa 2018-12-24 13:33:25 +03:00
parent a207199879
commit 0b363a5c98

View File

@ -41,8 +41,6 @@ dns_internetbs_add() {
if ! _contains "$response" "\"status\":\"SUCCESS\""; then
_err "ERROR add TXT record"
_err "$response"
_clearaccountconf INTERNETBS_API_KEY
_clearaccountconf INTERNETBS_API_PASSWORD
return 1
fi
@ -75,8 +73,6 @@ dns_internetbs_rm() {
if ! _contains "$response" "\"status\":\"SUCCESS\""; then
_err "ERROR list dns records"
_err "$response"
_clearaccountconf INTERNETBS_API_KEY
_clearaccountconf INTERNETBS_API_PASSWORD
return 1
fi
@ -89,8 +85,6 @@ dns_internetbs_rm() {
if ! _contains "$response" "\"status\":\"SUCCESS\""; then
_err "ERROR remove dns record"
_err "$response"
_clearaccountconf INTERNETBS_API_KEY
_clearaccountconf INTERNETBS_API_PASSWORD
return 1
fi
@ -118,8 +112,6 @@ _get_root() {
if ! _contains "$response" "\"status\":\"SUCCESS\""; then
_err "ERROR fetch domain list"
_err "$response"
_clearaccountconf INTERNETBS_API_KEY
_clearaccountconf INTERNETBS_API_PASSWORD
return 1
fi