[Profile] Hotfix: Fix #15961: az login: UnboundLocalError: local variable 'token_entry' referenced before assignment#15962
Conversation
There was a problem hiding this comment.
There should be raise ex here
|
Profile |
There was a problem hiding this comment.
A white space usually goes to the previous line.
There was a problem hiding this comment.
A browse won't be available on CI machine, so auth code flow won't be used.
There was a problem hiding this comment.
Appreciate for your help! That makes sense why CI fails....
There was a problem hiding this comment.
adal.AuthenticationContext will not be called, since SubscriptionFinder is using lambda _, _1, _2: mock_auth_context.
mock_auth_context can simply be created as a MagicMock().
There was a problem hiding this comment.
Please make this a more general test case so that other errors can also be tested to avoid regression.
|
Hard to review. The changes are mixed up with unrelated changes. |
49eeb83 to
2a1052a
Compare
I have fixed the history. |
houk-ms
left a comment
There was a problem hiding this comment.
Could we explain more details about what's happening there in the pr description?
Will do a full analysis next week. |
Description
Fix #15961 : az login: UnboundLocalError: local variable 'token_entry' referenced before assignment
In previous pr #15776 ,
Invalid Urlis captured and handled, but other exceptions are hidden inappropriately.This pr revokes previous change,
InvalidUrlhandling need further discussion.Testing Guide
az login -u "your_user_name" -p "wrong_password"set $env:HTTPS_PROXY="http://VFROOT\DevendranS:DecDeva_2020@10.145.16.50:80"
az login