From 85929ff03419e5417766015dc1be352b56c82307 Mon Sep 17 00:00:00 2001 From: Brett Polivka Date: Mon, 18 Oct 2021 01:37:04 +0000 Subject: [PATCH] [azure] remove dummy MSI_ENDPOINT --- provider/azure/config.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/provider/azure/config.go b/provider/azure/config.go index 8e4d3870ed..5b282af8b4 100644 --- a/provider/azure/config.go +++ b/provider/azure/config.go @@ -19,7 +19,6 @@ package azure import ( "fmt" "io/ioutil" - "os" "strings" "github.com/Azure/go-autorest/autorest/adal" @@ -104,10 +103,6 @@ func getAccessToken(cfg config, environment azure.Environment) (*adal.ServicePri // Try to retrieve token with MSI. if cfg.UseManagedIdentityExtension { log.Info("Using managed identity extension to retrieve access token for Azure API.") - os.Setenv("MSI_ENDPOINT", "http://dummy") - defer func() { - os.Unsetenv("MSI_ENDPOINT") - }() if cfg.UserAssignedIdentityID != "" { log.Infof("Resolving to user assigned identity, client id is %s.", cfg.UserAssignedIdentityID)