azure-devops-cli-extension
azure-devops-cli-extension copied to clipboard
Fixed default order of the identities
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.