Skip to content

Commit e41cad1

Browse files
Fix tag test
1 parent 5e6385e commit e41cad1

File tree

2 files changed

+3349
-2724
lines changed

2 files changed

+3349
-2724
lines changed

src/azure-cli/azure/cli/command_modules/resource/custom.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from azure.cli.core.commands import LongRunningOperation
3030
from azure.cli.core.commands.arm import raise_subdivision_deployment_error
3131
from azure.cli.core.commands.client_factory import get_mgmt_service_client, get_subscription_id
32-
from azure.cli.core.profiles import ResourceType, get_sdk, get_api_version, AZURE_API_PROFILES
32+
from azure.cli.core.profiles import ResourceType, get_sdk, get_api_version
3333

3434
from azure.cli.command_modules.resource._client_factory import (
3535
_resource_client_factory, _resource_policy_client_factory, _resource_lock_client_factory,
@@ -4587,7 +4587,8 @@ def _resolve_api_version_by_id(rcf, resource_id, latest_include_preview=False):
45874587
parts = parse_resource_id(resource_id)
45884588

45894589
if len(parts) == 2 and parts['subscription'] is not None and parts['resource_group'] is not None:
4590-
return AZURE_API_PROFILES['latest'][ResourceType.MGMT_RESOURCE_RESOURCES]
4590+
return _ResourceUtils.resolve_api_version(rcf, 'Microsoft.Resources', None, 'resourceGroups',
4591+
latest_include_preview=latest_include_preview)
45914592

45924593
if 'namespace' not in parts:
45934594
raise CLIError('The type of value entered by --ids parameter is not supported.')

0 commit comments

Comments
 (0)