Skip to content

Commit 3a4ef78

Browse files
committed
fix test
1 parent fd53a86 commit 3a4ef78

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ def test_models(self):
9494
models = AKSManagedClusterModels(self.cmd, ResourceType.MGMT_CONTAINERSERVICE)
9595

9696
# load models directly (instead of through the `get_sdk` method provided by the cli component)
97-
from azure.cli.core.profiles._shared import AZURE_API_PROFILES
98-
99-
sdk_profile = AZURE_API_PROFILES["latest"][ResourceType.MGMT_CONTAINERSERVICE]
100-
api_version = sdk_profile.default_api_version
101-
module_name = "azure.mgmt.containerservice.v{}.models".format(api_version.replace("-", "_"))
97+
module_name = "azure.mgmt.containerservice.models"
10298
module = importlib.import_module(module_name)
10399

104100
# load balancer models

0 commit comments

Comments
 (0)