Browse Source
AzureDNS: Add support for AzureUSGovernment endpoints. Cleanup conditional logic to preferred syntax
pull/4348/head
JustChris1
3 years ago
Failed to extract signature
1 changed files with
2 additions and
2 deletions
-
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="" |
|
|
|
|