From 0ff4bd2954f034069e8ae84681b840c25a69c229 Mon Sep 17 00:00:00 2001 From: JustChris1 <30219018+justchris1@users.noreply.github.com> Date: Tue, 11 Oct 2022 07:07:18 -0400 Subject: [PATCH] AzureDNS: Add support for AzureUSGovernment endpoints. Cleanup conditional logic to preferred syntax --- dnsapi/dns_azure.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsapi/dns_azure.sh b/dnsapi/dns_azure.sh index 0f3a79fe..0da3db8c 100644 --- a/dnsapi/dns_azure.sh +++ b/dnsapi/dns_azure.sh @@ -48,7 +48,7 @@ dns_azure_add() { _info "You didn't specify the Azure Environment; assuming AzureCloud for backwards compatibility" fi - if [ "$AZUREDNS_ENVIRONMENT" != "AzureCloud" -a "$AZUREDNS_ENVIRONMENT" != "AzureUSGovernment" ]; then + if [ "$AZUREDNS_ENVIRONMENT" != "AzureCloud" ] && [ "$AZUREDNS_ENVIRONMENT" != "AzureUSGovernment" ]; then AZUREDNS_SUBSCRIPTIONID="" AZUREDNS_TENANTID="" AZUREDNS_APPID="" @@ -180,7 +180,7 @@ dns_azure_rm() { _info "You didn't specify the Azure Environment; assuming AzureCloud for backwards compatibility" fi - if [ "$AZUREDNS_ENVIRONMENT" != "AzureCloud" -a "$AZUREDNS_ENVIRONMENT" != "AzureUSGovernment" ]; then + if [ "$AZUREDNS_ENVIRONMENT" != "AzureCloud" ] && [ "$AZUREDNS_ENVIRONMENT" != "AzureUSGovernment" ]; then AZUREDNS_SUBSCRIPTIONID="" AZUREDNS_TENANTID="" AZUREDNS_APPID=""