File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ type AzureCLICredential struct {
1616var _ CredentialProvider = (* AzureCLICredential )(nil )
1717
1818func newAzureCLICredential (opts * Options ) (CredentialProvider , error ) {
19- if opts .TenantID == "" {
20- return nil , fmt .Errorf ("tenant ID cannot be empty" )
21- }
2219 cred , err := azidentity .NewAzureCLICredential (& azidentity.AzureCLICredentialOptions {
2320 TenantID : opts .TenantID ,
2421 })
Original file line number Diff line number Diff line change @@ -20,11 +20,6 @@ func TestNewAzureCLICredential(t *testing.T) {
2020 },
2121 expectName : "AzureCLICredential" ,
2222 },
23- {
24- name : "missing tenant ID" ,
25- opts : & Options {},
26- expectErrorMsg : "tenant ID cannot be empty" ,
27- },
2823 }
2924
3025 for _ , tc := range testCases {
You can’t perform that action at this time.
0 commit comments