azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

multiapi_init_gen.py generate unmatched code on azure-mgmt-resource

Open changlong-liu opened this issue 6 years ago • 6 comments

  • Package Name:
  • Package Version:
  • Operating System:
  • Python Version:

Describe the bug Swagger version: https://github.com/Azure/azure-rest-api-specs/pull/8268

Below is the _resource_management_client.py in azure.mgmt.resource.resources image

It is calling ResourceManagementClientConfiguration with parameter subscription_id. But in the _configuration.py, ResourceManagementClientConfiguration actually require both subscription_id and subscription_id1 image

To Reproduce Steps to reproduce the behavior: use packaging_tools.generate_sdk

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

changlong-liu avatar Apr 02 '20 08:04 changlong-liu

Thanks @changlong-liu, @nickzhums can you take a look at this

kaerm avatar Apr 02 '20 17:04 kaerm

@lmazuel to check the issue in generated code. thanks.

RodgeFu avatar Apr 07 '20 03:04 RodgeFu

subscription_id1 is likely the root cause of the issue in the first place. That doesn't seem right, likely a Swagger issue. @zikalino FYI

lmazuel avatar Apr 07 '20 20:04 lmazuel

Hi @chenjianfei2017 , would you help to confirm this is fixed in swagger? Thanks.

changlong-liu avatar Jun 23 '20 02:06 changlong-liu

hi @changlong-liu @lmazuel @kaerm it was resolved in this pr: https://github.com/Azure/azure-rest-api-specs/pull/9580/files

chenjianfei2017 avatar Jun 25 '20 02:06 chenjianfei2017

Thanks @chenjianfei2017 !

changlong-liu avatar Jun 26 '20 00:06 changlong-liu