Jiashuo Li
Jiashuo Li
Originally reported at https://github.com/Azure/azure-cli/issues/13413 Colorama fails if output is redirected to `head` command. test.py: ```py import sys from colorama import init, Fore, Style init() for i in range(30): print(Fore.RED +...
This issue is exposed via https://github.com/Azure/azure-cli/issues/9903, which also triggered https://github.com/Azure/azure-sdk-for-python/pull/11362. ## Symptom Extra escape sequence `\x1b[0m` is printed when colorama is called by `subprocess` in PyCharm. ## Repro To repro,...
## Description `Connect-AzAccount -MaxContextPopulation` not working when called with existing contexts. ## Steps to reproduce First delete `~/.azure`. ```powershell > Connect-AzAccount # Returned 1 item in total > Get-AzContext -ListAvailable...
`CDumper` and `Dumper` generate different output for the same input object: ```py import yaml from yaml import CDumper, Dumper string = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\nyyyyyyyyyyyyyyyyyyyyy' print(yaml.dump(string, Dumper=CDumper)) print(yaml.dump(string, Dumper=Dumper)) string = '"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"\r\nyyyyyyyyyyyyyyyyyyyyy' print(yaml.dump(string,...
**Description** When command modules such as `resource` or `network` call `get_login_credentials`, it specifies `aux_subscriptions` or `aux_tenants`. The returned `CredentialAdaptor` contains internal credentials for these aux tenants. `_prepare_mgmt_client_kwargs_track2` will then call...
## Context Fix https://github.com/Azure/azure-cli/issues/20972 If an argument contains special characters like `|` and `&`, even though the character is double quoted, it still gets executed. This is because PowerShell launches...
## Describe the bug When invoking `az` in PowerShell, due to the known issue of PowerShell https://github.com/PowerShell/PowerShell/issues/1995, arguments passed to Azure CLI may get corrupted. For example, literal double quotes...
## `_before_record_request` is called twice in recording mode In recording mode, it seems `_before_record_request` is called twice. In `can_play_response_for`, `_before_record_request` is already called on the `request` instance at L253. https://github.com/kevin1024/vcrpy/blob/535efe1eb92e894ccadc5515e0642b058c8c31f0/vcr/cassette.py#L252-L254...
Originally from https://github.com/AzureAD/microsoft-authentication-library-for-python/pull/443#discussion_r895288236 Currently, MSAL raises Python's base error `ValueError` for scenarios such as tenant validation failure. **Azure CLI can't really tell whether the error comes from MSAL or other...
**Describe the bug** Python 2 has been deprecated long time ago: https://www.python.org/doc/sunset-python-2/ > We have decided that January 1, 2020, was the day that we sunset Python 2. Customers asked...