Azure / autorest.az

Azure CLI Code Generator
MIT License
22 stars 20 forks source link

Bug for action generation #851

Closed Juliehzl closed 3 years ago

Juliehzl commented 3 years ago

with autorest --az --use=https://github.com/Azure/autorest.az/releases/download/1.7.3-b.20210510.1/autorest-az-1.7.3.tgz, generated action code is very strange

image

Juliehzl commented 3 years ago

Add more: With the this version, action behavior will generate unexpected request body, which is different from the latest one. current body: "disks": [{"id": "['/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitestvvarcemkd/providers/Microsoft.Compute/disks/diskolglea']"}], latest version: "disks": [{"id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitestvvarcemkd/providers/Microsoft.Compute/disks/diskolglea"}],

The root cause is the change in action.py. value_chunk_list is [["xxxxx"]] image