-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ACR} Fix #30041: az acr command failed with "multiple values for keyword argument" error when running on SAW #30542
base: dev
Are you sure you want to change the base?
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
@@ -196,7 +196,7 @@ def _get_aad_token_after_challenge(cli_ctx, | |||
} | |||
|
|||
logger.debug(add_timestamp("Sending a HTTP Post request to {}".format(authhost))) | |||
response = requests.post(authhost, urlencode(content), headers=headers, | |||
response = requests.post(url=authhost, data=urlencode(content), headers=headers, | |||
verify=not should_disable_connection_verify()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this same request being used on line 303 as well....to maintain consistency and avoid potential issues with positional arguments, should we also change line 303 to use keyword arguments?
Related command
az acr login
Description
Fix login issue on SAW #30041 due to a special package used to replace the standard python requests package. Since the standard python package cannot be used on SAW for security reasons, CLI team replaced requests with windows-http. The different positional argument sequence between requests and windows-http caused this issue to occur on SAW. I had a discussion with Hang Lei and the quickest way to resolve this is to use keyword arguments instead of positional arguments. We will have to wait until the next CLI release to SAW for the issue to be resolved.
Testing Guide
az acr login -n myregistry
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.