Browse Source

indentation

pull/4219/head
Hobby-Student 3 years ago
committed by GitHub
parent
commit
940c3a7cc4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dnsapi/dns_kas.sh

6
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."
;;
@ -145,7 +145,7 @@ _get_zone_and_record_name() {
return 1
fi
_zonen="$(echo "$response" | tr -d '\n\r' | sed "s/<item xsi:type=\"ns2:Map\">/\n/g" | sed "s/<item><key xsi:type=\"xsd:string\">domain_name<\/key><value xsi:type=\"xsd:string\">/=> /g" | sed "s/<\/value><\/item>/\n/g" | grep "=>"| sed "s/=> //g")"
_zonen="$(echo "$response" | tr -d '\n\r' | sed "s/<item xsi:type=\"ns2:Map\">/\n/g" | sed "s/<item><key xsi:type=\"xsd:string\">domain_name<\/key><value xsi:type=\"xsd:string\">/=> /g" | sed "s/<\/value><\/item>/\n/g" | grep "=>" | sed "s/=> //g")"
_domain="$1"
_temp_domain="$(echo "$1" | sed 's/\.$//')"
_rootzone="$_domain"

Loading…
Cancel
Save