Unverified Commit 91607bb2 authored by neil's avatar neil Committed by GitHub
Browse files

Update dns_azure.sh

parent 441c26dd
......@@ -7,8 +7,7 @@
#
# Ref: https://docs.microsoft.com/en-us/rest/api/dns/recordsets/createorupdate
#
dns_azure_add()
{
dns_azure_add() {
fulldomain=$1
txtvalue=$2
......@@ -58,7 +57,6 @@ dns_azure_add()
_saveaccountconf_mutable AZUREDNS_APPID "$AZUREDNS_APPID"
_saveaccountconf_mutable AZUREDNS_CLIENTSECRET "$AZUREDNS_CLIENTSECRET"
accesstoken=$(_azure_getaccess_token "$AZUREDNS_TENANTID" "$AZUREDNS_APPID" "$AZUREDNS_CLIENTSECRET")
if ! _get_root "$fulldomain" "$AZUREDNS_SUBSCRIPTIONID" "$accesstoken"; then
......@@ -86,8 +84,7 @@ dns_azure_add()
#
# Ref: https://docs.microsoft.com/en-us/rest/api/dns/recordsets/delete
#
dns_azure_rm()
{
dns_azure_rm() {
fulldomain=$1
txtvalue=$2
......@@ -209,7 +206,6 @@ _azure_getaccess_token() {
return 1
fi
printf "%s" "$accesstoken"
return 0
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment