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
18 additions and
18 deletions
-
dnsapi/dns_kas.sh
|
|
|
@ -47,7 +47,7 @@ dns_kas_add() { |
|
|
|
return 1 |
|
|
|
elif _contains "$response" "<SOAP-ENV:Fault>"; then |
|
|
|
faultstring="$(echo "$response" | tr -d '\n\r' | sed "s/<faultstring>/\n=> /g" | sed "s/<\/faultstring>/\n/g" | grep "=>" | sed "s/=> //g")" |
|
|
|
case "$faultstring" in |
|
|
|
case "${faultstring}" in |
|
|
|
"record_already_exists") |
|
|
|
_info "##KAS## The record already exists, which must not be a problem. Please check manually." |
|
|
|
;; |
|
|
|
@ -88,7 +88,7 @@ dns_kas_rm() { |
|
|
|
return 1 |
|
|
|
elif _contains "$response" "<SOAP-ENV:Fault>"; then |
|
|
|
faultstring="$(echo "$response" | tr -d '\n\r' | sed "s/<faultstring>/\n=> /g" | sed "s/<\/faultstring>/\n/g" | grep "=>" | sed "s/=> //g")" |
|
|
|
case "$faultstring" in |
|
|
|
case "${faultstring}" in |
|
|
|
"record_id_not_found") |
|
|
|
_info "##KAS## The record was not found, which must not be a problem. Please check manually." |
|
|
|
;; |
|
|
|
|