Skip to content

[Mgmt][multiapi] can't call configured api_version after multiapi_combiner #1934

@msyyc

Description

@msyyc

During migration to lightweight compute package, CLI team finds that they can't call api-version configured. The root cause is that: https://github.com/Azure/azure-sdk-for-python/blob/c2d57bd53ac8ba6a3e0e04f1bf0967e40211f30a/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/operations/_operations.py#L4275
we shall change

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2022-11-01"))

to:

api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._api_version))

Metadata

Metadata

Assignees

Labels

bugThis issue requires a change to an existing behavior in the product in order to be resolved.mgmtThis issue is related to a management-plane library.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions