Skip to content

Commit

Permalink
{AKS} az aks nodepool upgrade: Fix the wrong prompt when specifying…
Browse files Browse the repository at this point in the history
… the `--kubernetes-version` (#29638)
  • Loading branch information
FumingZhang authored Aug 8, 2024
1 parent ecf5c70 commit aeaede5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/azure-cli/azure/cli/command_modules/acs/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -2473,7 +2473,7 @@ def aks_agentpool_upgrade(cmd, client, resource_group_name, cluster_name,

instance = client.get(resource_group_name, cluster_name, nodepool_name)

if kubernetes_version != '' or instance.orchestrator_version == kubernetes_version:
if kubernetes_version == '' or instance.orchestrator_version == kubernetes_version:
msg = "The new kubernetes version is the same as the current kubernetes version."
if instance.provisioning_state == "Succeeded":
msg = "The cluster is already on version {} and is not in a failed state. No operations will occur when upgrading to the same version if the cluster is not in a failed state.".format(instance.orchestrator_version)
Expand Down

0 comments on commit aeaede5

Please sign in to comment.