Skip to content

Commit 05ed0ce

Browse files
clnvCopilot
andcommitted
Update sdk/azidentity/workload_identity.go
Co-authored-by: Copilot <[email protected]>
1 parent 5a14d1b commit 05ed0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/azidentity/workload_identity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func NewWorkloadIdentityCredential(options *WorkloadIdentityCredentialOptions) (
9999
file := options.TokenFilePath
100100
if file == "" && options.GetFederatedToken == nil {
101101
if file, ok = os.LookupEnv(azureFederatedTokenFile); !ok {
102-
return nil, errors.New("no token file specified. Check pod configuration or set TokenFilePath or GetFederatedToken in the options")
102+
return nil, errors.New("no token source specified. Check pod configuration or set GetFederatedToken or TokenFilePath in the options")
103103
}
104104
}
105105
tenantID := options.TenantID

0 commit comments

Comments
 (0)