-
Notifications
You must be signed in to change notification settings - Fork 3.4k
{Compute} az vm image: Migrate command group to aaz-based implementation
#32867
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
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -41,7 +41,7 @@ | |||||||
| from ._vm_diagnostics_templates import get_default_diag_config | ||||||||
|
|
||||||||
| from ._actions import (load_images_from_aliases_doc, load_extension_images_thru_services, | ||||||||
| load_images_thru_services, _get_latest_image_version, _get_latest_image_version_by_aaz) | ||||||||
| load_images_thru_services, _get_latest_image_version_by_aaz) | ||||||||
| from ._client_factory import (_compute_client_factory, cf_vm_image_term) | ||||||||
|
|
||||||||
| from .aaz.latest.vm.disk import AttachDetachDataDisk | ||||||||
|
|
@@ -2802,7 +2802,7 @@ def show_vm_image(cmd, urn=None, publisher=None, offer=None, sku=None, version=N | |||||||
| elif len(items) == 4: | ||||||||
| publisher, offer, sku, version = urn.split(":") | ||||||||
| if version.lower() == 'latest': | ||||||||
| version = _get_latest_image_version(cmd.cli_ctx, location, publisher, offer, sku) | ||||||||
| version = _get_latest_image_version_by_aaz(cmd.cli_ctx, location, publisher, offer, sku) | ||||||||
|
||||||||
| version = _get_latest_image_version_by_aaz(cmd.cli_ctx, location, publisher, offer, sku) | |
| version = _get_latest_image_version_by_aaz(cmd.cli_ctx, location, publisher, offer, sku, | |
| edge_zone=edge_zone) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compute_vm_image_sdkis no longer used after removing it fromwith self.command_group('vm image', ...), so it becomes dead code insideload_command_table. Either remove the unusedcompute_vm_image_sdkCliCommandType definition or reintroduce it if somevm imagecommands still require the SDK operations template.