Skip to content

Conversation

@alexmanie
Copy link
Contributor

Addind decode support for latin-special characters like ñ, ç, etc ...

Purpose

Adding decode support for latin-special characters like ñ, ç, etc ... when printing Azure account information.

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[x] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Test the code
Print information in a Python notebook from "az account show" involving latin characters like "ñ" or "ç" in the name of the Azure subcription.
output = utils.run("az account show", "Retrieved az account", "Failed to get the current az account")

if output.success and output.json_data:
    current_user = output.json_data['user']['name']
    tenant_id = output.json_data['tenantId']
    subscription_name = output.json_data['name']
    subscription_id = output.json_data['id']

    utils.print_info(f"Current user: {current_user}")
    utils.print_info(f"Tenant ID: {tenant_id}")
    utils.print_info(f"Subscription name: {subscription_name}")
    utils.print_info(f"Subscription ID: {subscription_id}")

image

Addind decode support for latin-special characters like ñ, ç, etc ...
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.

1 participant