Skip to content

Commit 3a1389e

Browse files
m-chauCopilot
andauthored
Update src/aks-preview/azext_aks_preview/custom.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 443a829 commit 3a1389e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/aks-preview/azext_aks_preview/custom.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,16 +1724,16 @@ def aks_upgrade(cmd,
17241724

17251725
if tier is not None:
17261726
instance.sku.tier = tier
1727-
1727+
17281728
if k8s_support_plan is not None:
17291729
instance.support_plan = k8s_support_plan
1730-
if (
1731-
instance.support_plan == KubernetesSupportPlan.AKS_LONG_TERM_SUPPORT
1732-
and instance.sku.tier is not None
1733-
and instance.sku.tier.lower() != CONST_MANAGED_CLUSTER_SKU_TIER_PREMIUM.lower()
1734-
):
1735-
raise CLIError("AKS Long Term Support is only available for Premium tier clusters.")
17361730

1731+
if (
1732+
instance.support_plan == KubernetesSupportPlan.AKS_LONG_TERM_SUPPORT
1733+
and instance.sku.tier is not None
1734+
and instance.sku.tier.lower() != CONST_MANAGED_CLUSTER_SKU_TIER_PREMIUM.lower()
1735+
):
1736+
raise CLIError("AKS Long Term Support is only available for Premium tier clusters.")
17371737
if instance.kubernetes_version == kubernetes_version:
17381738
if instance.provisioning_state == "Succeeded":
17391739
logger.warning("The cluster is already on version %s and is not in a failed state. No operations "

0 commit comments

Comments
 (0)