dnsapi/ionos: Run shfmt

This commit is contained in:
Lukas Brocke 2020-12-24 13:06:07 +01:00
parent a00046f9b2
commit 22f7ac22d5

View File

@ -13,7 +13,7 @@
IONOS_API="https://api.hosting.ionos.com/dns" IONOS_API="https://api.hosting.ionos.com/dns"
IONOS_ROUTE_ZONES="/v1/zones" IONOS_ROUTE_ZONES="/v1/zones"
IONOS_TXT_TTL=60 # minumum accepted by API IONOS_TXT_TTL=60 # minimum accepted by API
IONOS_TXT_PRIO=10 IONOS_TXT_PRIO=10
dns_ionos_add() { dns_ionos_add() {
@ -25,7 +25,7 @@ dns_ionos_add() {
_body="{\"name\":\"$_sub_domain.$_domain\",\"type\":\"TXT\",\"content\":\"$txtvalue\",\"ttl\":$IONOS_TXT_TTL,\"prio\":$IONOS_TXT_PRIO,\"disabled\":false}" _body="{\"name\":\"$_sub_domain.$_domain\",\"type\":\"TXT\",\"content\":\"$txtvalue\",\"ttl\":$IONOS_TXT_TTL,\"prio\":$IONOS_TXT_PRIO,\"disabled\":false}"
if _ionos_rest PATCH "$IONOS_ROUTE_ZONES/$_zone_id" "$_body" && [ -z "$response" ]; then if _ionos_rest PATCH "$IONOS_ROUTE_ZONES/$_zone_id" "$_body" && [ -z "$response" ]; then
_info "TXT record for _sub_domain.$_domain has been created successfully." _info "TXT record has been created successfully."
return 0 return 0
fi fi
@ -44,7 +44,7 @@ dns_ionos_rm() {
fi fi
if _ionos_rest DELETE "$IONOS_ROUTE_ZONES/$_zone_id/records/$_record_id" && [ -z "$response" ]; then if _ionos_rest DELETE "$IONOS_ROUTE_ZONES/$_zone_id/records/$_record_id" && [ -z "$response" ]; then
_info "TXT record for _sub_domain.$_domain has been deleted successfully." _info "TXT record has been deleted successfully."
return 0 return 0
fi fi