Invalid python escape sequence in azure resource graph extension #8369
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Resource Graph
Service Attention
This issue is responsible by Azure service team.
Describe the bug
In python, spaces need no escaping, but I've heard that only newer versions of python complain if you do it anyway, i.e. use '\ ' in a string. _models_py3.py of the resource graph extension seems to contain such escape sequences, though: In line 58, 62, 1201, and 1205. Some az commands now print a warning because of this in my environment, although that hasn't happened in the past and I cannot reproduce it in all environments. I assume it depends on the python version used.
Related command
az graph
Errors
This is the output on my machine:
Issue script & Debug output
Expected behavior
There should be no warning about the invalid escape sequence.
Environment Summary
azure-cli 2.67.0
core 2.67.0
telemetry 1.1.0
Extensions:
resource-graph 2.1.0
Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\ChristophHannebauer.azure\cliextensions'
Python (Windows) 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
The code is auto-generated by autorest, so probably, there is an upstream issue in autorest
The text was updated successfully, but these errors were encountered: