From 38aa8696e77cf86a7401a9c831dfdafd2d90e77c Mon Sep 17 00:00:00 2001 From: Gianluca Giacometti <52405+gianlucagiacometti@users.noreply.github.com> Date: Sat, 28 Dec 2024 20:44:18 +0100 Subject: [PATCH] Update dns_fmdns.sh --- dnsapi/dns_fmdns.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_fmdns.sh b/dnsapi/dns_fmdns.sh index 017ef4f1..f452b042 100644 --- a/dnsapi/dns_fmdns.sh +++ b/dnsapi/dns_fmdns.sh @@ -95,7 +95,7 @@ _fmDnsApi_addRecord() { _info "Adding record to zone" curData="{\"fmAuthToken\":\"${FMDNS_API_TOKEN}\",\"id\":\"${FMDNS_API_DOMAIN_ID}\",\"action\":\"add\",\"name\":\"${fulldomain}\",\"value\":\"${txtvalue}\",\"type\":\"TXT\",\"ttl\":\"5\",\"autoupdate\":\"yes\"}" curResult="$(_post "${curData}" "${FMDNS_API_ENDPOINT}")" - _info "API result: "${curResult}"" + _info "API result: '${curResult}'" _debug "Calling facileManager API: '${curData}' '${FMDNS_API_ENDPOINT}'" _debug "Result of zone add: '$curResult'" if [ "${curResult}" != "Success" ]; then @@ -114,7 +114,7 @@ _fmDnsApi_removeRecord() { _info "Removing record from zone" curData="{\"fmAuthToken\":\"${FMDNS_API_TOKEN}\",\"id\":\"${FMDNS_API_DOMAIN_ID}\",\"action\":\"delete\",\"name\":\"${fulldomain}\",\"type\":\"TXT\",\"ttl\":\"5\",\"autoupdate\":\"yes\"}" curResult="$(_post "${curData}" "${FMDNS_API_ENDPOINT}")" - _info "API result: "${curResult}"" + _info "API result: '${curResult}'" _debug "Calling facileManager API: '${curData}' '${FMDNS_API_ENDPOINT}'" _debug "Result of zone delete: '$curResult'" if [ "${curResult}" != "Success" ]; then