From dc14eb66bcb0606cf4501442166975cbe56f2435 Mon Sep 17 00:00:00 2001 From: WangDian Date: Wed, 1 Jun 2022 15:20:58 +0800 Subject: [PATCH] Update AzureMLKubernetes.py To solve transient gate error --- .../partner_extensions/AzureMLKubernetes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/k8s-extension/azext_k8s_extension/partner_extensions/AzureMLKubernetes.py b/src/k8s-extension/azext_k8s_extension/partner_extensions/AzureMLKubernetes.py index 84b1b217a66..8570efd2f6f 100644 --- a/src/k8s-extension/azext_k8s_extension/partner_extensions/AzureMLKubernetes.py +++ b/src/k8s-extension/azext_k8s_extension/partner_extensions/AzureMLKubernetes.py @@ -134,18 +134,18 @@ def Create(self, cmd, client, resource_group_name, cluster_name, name, cluster_t cluster_resource_id, parent_api_version) cluster_location = resource.location.lower() try: - isSmallScale = False + isDevScale = False if cluster_type.lower() == 'connectedclusters': if resource.properties['totalNodeCount'] < 3: - isSmallScale = True + isDevScale = True if cluster_type.lower() == 'managedclusters': nodeCount = 0 for agent in resource.properties['agentPoolProfiles']: nodeCount += agent['count'] if nodeCount < 3: - isSmallScale = True + isDevScale = True - if isSmallScale: + if isDevScale: clusterPurpose = _get_value_from_config_protected_config( self.clusterPurpose, configuration_settings, configuration_protected_settings) if clusterPurpose is None: