Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SCVMM] Add support for latest API version #7778

Merged
merged 10 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/scvmm/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

1.1.0
++++++
* Security upgrades and fixes.

1.0.0
++++++
* First Stable version release.
Expand Down
8 changes: 4 additions & 4 deletions src/scvmm/azext_scvmm/_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core import AzCli
from .vendored_sdks.scvmm import SCVMM
from .vendored_sdks.scvmm import ScVmmMgmtClient
from .vendored_sdks.hybridcompute import HybridComputeManagementClient


def cf_scvmm(cli_ctx: AzCli, *_) -> SCVMM:
def cf_scvmm(cli_ctx: AzCli, *_) -> ScVmmMgmtClient:
"""
Client factory for scvmm clients.
"""
return get_mgmt_service_client(cli_ctx, SCVMM)
return get_mgmt_service_client(cli_ctx, ScVmmMgmtClient)


def cf_hybridcompute(cli_ctx: AzCli, *_) -> HybridComputeManagementClient:
Expand Down Expand Up @@ -73,7 +73,7 @@ def cf_vminstance_guest_agent(cli_ctx: AzCli, *_):
"""
Client factory for guest agent.
"""
return cf_scvmm(cli_ctx).vm_instance_guest_agents
return cf_scvmm(cli_ctx).guest_agents


def cf_machine(cli_ctx: AzCli, *_):
Expand Down
Loading
Loading