Hobby-Student
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
2 deletions
-
dnsapi/dns_kas.sh
|
|
@ -56,8 +56,12 @@ dns_kas_add() { |
|
|
_debug2 "##KAS## response" "$response" |
|
|
_debug2 "##KAS## response" "$response" |
|
|
|
|
|
|
|
|
if _contains "$response" "<SOAP-ENV:Fault>"; then |
|
|
if _contains "$response" "<SOAP-ENV:Fault>"; then |
|
|
|
|
|
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." |
|
|
_err "##KAS## An error occurred, please check manually." |
|
|
return 1 |
|
|
return 1 |
|
|
|
|
|
fi |
|
|
elif ! _contains "$response" "<item><key xsi:type=\"xsd:string\">ReturnString</key><value xsi:type=\"xsd:string\">TRUE</value></item>"; then |
|
|
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." |
|
|
_err "##KAS## An unknown error occurred, please check manually." |
|
|
return 1 |
|
|
return 1 |
|
|
|