Skip to content

Commit

Permalink
Fix organizations tenant bug in sync client (#37457)
Browse files Browse the repository at this point in the history
  • Loading branch information
billwert authored Nov 3, 2023
1 parent 2e82a92 commit 287045c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,8 @@ public AccessToken authenticateWithAzureCli(TokenRequestContext request) {
String tenant = IdentityUtil.resolveTenantId(tenantId, request, options);
ValidationUtil.validateTenantIdCharacterRange(tenant, LOGGER);

if (!CoreUtils.isNullOrEmpty(tenant)) {
if (!CoreUtils.isNullOrEmpty(tenant) && !tenant.equals(IdentityUtil.DEFAULT_TENANT)) {
azCommand.append(" --tenant ").append(tenant);

}

try {
Expand Down Expand Up @@ -410,7 +409,7 @@ public AccessToken authenticateWithAzureDeveloperCli(TokenRequestContext request
String tenant = IdentityUtil.resolveTenantId(tenantId, request, options);
ValidationUtil.validateTenantIdCharacterRange(tenant, LOGGER);

if (!CoreUtils.isNullOrEmpty(tenant)) {
if (!CoreUtils.isNullOrEmpty(tenant) && !tenant.equals(IdentityUtil.DEFAULT_TENANT)) {
azdCommand.append(" --tenant-id ").append(tenant);
}

Expand Down

0 comments on commit 287045c

Please sign in to comment.