Update dns_azure.sh

This commit is contained in:
martgras 2018-01-25 07:40:35 +01:00 committed by GitHub
parent 00781dd4e1
commit 441c26dd32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ dns_azure_rm()
_debug "$acmeRecordURI" _debug "$acmeRecordURI"
body="{\"properties\": {\"TTL\": 3600, \"TXTRecords\": [{\"value\": [\"$txtvalue\"]}]}}" body="{\"properties\": {\"TTL\": 3600, \"TXTRecords\": [{\"value\": [\"$txtvalue\"]}]}}"
_azure_rest DELETE "$acmeRecordURI" "" "$accesstoken" _azure_rest DELETE "$acmeRecordURI" "" "$accesstoken"
if [ "$_code" = "200" ] || [ "$code" = '204' ]; then if [ "$_code" = "200" ] || [ "$_code" = '204' ]; then
_info "validation record removed" _info "validation record removed"
else else
_err "error removing validation record ($_code)" _err "error removing validation record ($_code)"
@ -208,7 +208,7 @@ _azure_getaccess_token() {
_err "error $response" _err "error $response"
return 1 return 1
fi fi
printf "$accesstoken" printf "%s" "$accesstoken"
return 0 return 0
} }