Skip to content

Commit e9e8b17

Browse files
committed
fix test
1 parent 40fdee0 commit e9e8b17

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/aks-preview/azext_aks_preview/tests/latest/test_managed_cluster_decorator.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,7 @@ def test_models(self):
111111
models = AKSPreviewManagedClusterModels(self.cmd, CUSTOM_MGMT_AKS_PREVIEW)
112112

113113
# load models directly (instead of through the `get_sdk` method provided by the cli component)
114-
from azure.cli.core.profiles._shared import AZURE_API_PROFILES
115-
116-
sdk_profile = AZURE_API_PROFILES["latest"][CUSTOM_MGMT_AKS_PREVIEW]
117-
api_version = sdk_profile.default_api_version
118-
module_name = (
119-
"azext_aks_preview.vendored_sdks.azure_mgmt_preview_aks.v{}.models".format(
120-
api_version.replace("-", "_")
121-
)
122-
)
114+
module_name = "azext_aks_preview.vendored_sdks.azure_mgmt_preview_aks.models"
123115
module = importlib.import_module(module_name)
124116

125117
# pod identity models

0 commit comments

Comments
 (0)