File tree Expand file tree Collapse file tree
src/aks-preview/azext_aks_preview Expand file tree Collapse file tree Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments