Skip to content

Commit

Permalink
Fixed default order of the identities (#1286)
Browse files Browse the repository at this point in the history
* Changed comparison to support actual data typing
  • Loading branch information
jikuja authored Sep 15, 2022
1 parent 62ccf7e commit b3d0392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/dev/common/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def get_token_from_az_logins(organization, pat_token_present):

# first loop to make sure the first identity we try with is coming from selected subscription
for subscription in subscriptions:
if subscription['isDefault'] == "true":
if subscription['isDefault']:
tenantsDict[(subscription['tenantId'], subscription['user']['name'])] = ''

for subscription in subscriptions:
Expand Down

0 comments on commit b3d0392

Please sign in to comment.