Skip to content

Fixed default order of the identities#1286

Merged
v-anvashist merged 1 commit into
Azure:masterfrom
jikuja:fix_default_subscription_selection
Sep 15, 2022
Merged

Fixed default order of the identities#1286
v-anvashist merged 1 commit into
Azure:masterfrom
jikuja:fix_default_subscription_selection

Conversation

@jikuja
Copy link
Copy Markdown
Contributor

@jikuja jikuja commented Jul 15, 2022

get_token_from_az_logins() method uses the wrong comparison when finding an active subscription from az login data. The code fails to insert active subscription as first identity without outputting any errors or warning.

This PR fixes comparison and active subscription is added into tenantsDict as first item.

Compare with get_default_subscription_info() in same file.

Please make sure the code is following contribution guidelines in CONTRIBUTING.md

  • : This PR has a corresponding issue open in the Repository.
  • : Approach is signed off on the issue.

* Changed comparison to support actual data typing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants