mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 19:14:49 +00:00
better handling of response
This commit is contained in:
parent
89a4d7ff87
commit
b19fe67ab9
@ -56,8 +56,12 @@ dns_kas_add() {
|
||||
_debug2 "##KAS## response" "$response"
|
||||
|
||||
if _contains "$response" "<SOAP-ENV:Fault>"; then
|
||||
_err "##KAS## An error occurred, please check manually."
|
||||
return 1
|
||||
if _contains "$response" "record_already_exists"; then
|
||||
_info "##KAS## The record already exists, which must not be a problem. Please check manually."
|
||||
else
|
||||
_err "##KAS## An error occurred, please check manually."
|
||||
return 1
|
||||
fi
|
||||
elif ! _contains "$response" "<item><key xsi:type=\"xsd:string\">ReturnString</key><value xsi:type=\"xsd:string\">TRUE</value></item>"; then
|
||||
_err "##KAS## An unknown error occurred, please check manually."
|
||||
return 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user