From 908214e4810372ff1a8269e6c34755cca946e206 Mon Sep 17 00:00:00 2001 From: Jack Francis Date: Wed, 30 Sep 2020 12:50:59 -0700 Subject: [PATCH] test: not nil defense broke logic (#3881) --- test/e2e/engine/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/engine/template.go b/test/e2e/engine/template.go index 0034f81e9c..3c26218a6b 100644 --- a/test/e2e/engine/template.go +++ b/test/e2e/engine/template.go @@ -139,7 +139,7 @@ func Build(cfg *config.Config, masterSubnetID string, agentSubnetIDs []string, i isAzureStackCloud = true } - if config.ClientID != "" && config.ClientSecret != "" && prop.OrchestratorProfile.KubernetesConfig != nil && !prop.OrchestratorProfile.KubernetesConfig.UseManagedIdentity { + if config.ClientID != "" && config.ClientSecret != "" && !(prop.OrchestratorProfile.KubernetesConfig != nil && prop.OrchestratorProfile.KubernetesConfig.UseManagedIdentity) { if !prop.IsAzureStackCloud() { prop.ServicePrincipalProfile = &vlabs.ServicePrincipalProfile{ ClientID: config.ClientID,