Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
test: not nil defense broke logic (#3881)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfrancis authored Sep 30, 2020
1 parent 1dd327a commit 908214e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/engine/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 908214e

Please sign in to comment.