Last active
March 13, 2020 02:05
-
-
Save lukateras/9f3401019e2e8234c056d7a0fb828c85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From cdc8f0e42aa892c4a2c60e0acea344afbaffabde Mon Sep 17 00:00:00 2001 | |
From: Yegor Timoshenko <yegortimoshenko@riseup.net> | |
Date: Fri, 13 Mar 2020 00:54:03 +0300 | |
Subject: [PATCH] azure: pass missing Azure config fields to | |
autorest.Authorizer | |
--- | |
providers/dns/azure/azure.go | 3 +++ | |
1 file changed, 3 insertions(+) | |
diff --git a/providers/dns/azure/azure.go b/providers/dns/azure/azure.go | |
index 8cd5f21..bc0f685 100644 | |
--- a/providers/dns/azure/azure.go | |
+++ b/providers/dns/azure/azure.go | |
@@ -65,6 +65,9 @@ type DNSProvider struct { | |
// see: https://github.com/Azure/go-autorest/blob/v10.14.0/autorest/azure/auth/auth.go#L38-L42 | |
func NewDNSProvider() (*DNSProvider, error) { | |
config := NewDefaultConfig() | |
+ config.ClientID = env.GetOrFile("AZURE_CLIENT_ID") | |
+ config.ClientSecret = env.GetOrFile("AZURE_CLIENT_SECRET") | |
+ config.TenantID = env.GetOrFile("AZURE_TENANT_ID") | |
config.SubscriptionID = env.GetOrFile("AZURE_SUBSCRIPTION_ID") | |
config.ResourceGroup = env.GetOrFile("AZURE_RESOURCE_GROUP") | |
-- | |
2.25.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment