AzureDNS: Add support for AzureUSGovernment endpoints. Cleanup conditional logic to preferred syntax

This commit is contained in:
JustChris1 2022-10-11 07:07:18 -04:00
parent 1afa9965a9
commit 0ff4bd2954
No known key found for this signature in database

View File

@ -48,7 +48,7 @@ dns_azure_add() {
_info "You didn't specify the Azure Environment; assuming AzureCloud for backwards compatibility" _info "You didn't specify the Azure Environment; assuming AzureCloud for backwards compatibility"
fi fi
if [ "$AZUREDNS_ENVIRONMENT" != "AzureCloud" -a "$AZUREDNS_ENVIRONMENT" != "AzureUSGovernment" ]; then if [ "$AZUREDNS_ENVIRONMENT" != "AzureCloud" ] && [ "$AZUREDNS_ENVIRONMENT" != "AzureUSGovernment" ]; then
AZUREDNS_SUBSCRIPTIONID="" AZUREDNS_SUBSCRIPTIONID=""
AZUREDNS_TENANTID="" AZUREDNS_TENANTID=""
AZUREDNS_APPID="" AZUREDNS_APPID=""
@ -180,7 +180,7 @@ dns_azure_rm() {
_info "You didn't specify the Azure Environment; assuming AzureCloud for backwards compatibility" _info "You didn't specify the Azure Environment; assuming AzureCloud for backwards compatibility"
fi fi
if [ "$AZUREDNS_ENVIRONMENT" != "AzureCloud" -a "$AZUREDNS_ENVIRONMENT" != "AzureUSGovernment" ]; then if [ "$AZUREDNS_ENVIRONMENT" != "AzureCloud" ] && [ "$AZUREDNS_ENVIRONMENT" != "AzureUSGovernment" ]; then
AZUREDNS_SUBSCRIPTIONID="" AZUREDNS_SUBSCRIPTIONID=""
AZUREDNS_TENANTID="" AZUREDNS_TENANTID=""
AZUREDNS_APPID="" AZUREDNS_APPID=""