Skip to content

Commit

Permalink
Update src/azure-cli/azure/cli/command_modules/acs/custom.py
Browse files Browse the repository at this point in the history
Co-authored-by: Yan Zhu <105691024+yanzhudd@users.noreply.github.com>
  • Loading branch information
paulgmiller and yanzhudd authored Oct 9, 2023
1 parent 2eaba35 commit e28e853
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/azure-cli/azure/cli/command_modules/acs/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -2289,9 +2289,9 @@ def aks_agentpool_upgrade(cmd, client, resource_group_name, cluster_name,
# Note: we exclude this option because node image upgrade can't accept nodepool put fields like max surge
if (max_surge or drain_timeout) and node_image_only:
raise MutuallyExclusiveArgumentError(
'Conflicting flags. Unable to specify max-surge/drain_timeout with node-image-only.'
'If you want to use max-surge/drain_timeout with a node image upgrade, please first '
'update max-surge/drain_timeout using "az aks nodepool update --max-surge".'
'Conflicting flags. Unable to specify max-surge/drain-timeout with node-image-only.'
'If you want to use max-surge/drain-timeout with a node image upgrade, please first '
'update max-surge/drain-timeout using "az aks nodepool update --max-surge/--drain-timeout".'
)

if node_image_only:
Expand Down

0 comments on commit e28e853

Please sign in to comment.