Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Apr 23, 2023
1 parent a312af9 commit 9380014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provider/config/azure_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func GetServicePrincipalToken(config *AzureAuthConfig, env *azure.Environment, r

if config.UseFederatedWorkloadIdentityExtension {
klog.V(2).Infoln("azure: using workload identity extension to retrieve access token")
oauthConfig, err := adal.NewOAuthConfigWithAPIVersion(env.ActiveDirectoryEndpoint, tenantID, nil)
oauthConfig, err := adal.NewOAuthConfigWithAPIVersion(env.ActiveDirectoryEndpoint, config.TenantID, nil)
if err != nil {
return nil, fmt.Errorf("failed to create the OAuth config: %w", err)
}
Expand Down

0 comments on commit 9380014

Please sign in to comment.