Skip to content

Commit 46d4194

Browse files
author
yingnizhou
committed
update
1 parent 56537a1 commit 46d4194

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/azure-cli/azure/cli/command_modules/acs

src/azure-cli/azure/cli/command_modules/acs/custom.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2552,7 +2552,8 @@ def aks_agentpool_upgrade(cmd, client, resource_group_name, cluster_name,
25522552
)
25532553

25542554
# Note: we exclude this option because node image upgrade can't accept nodepool put fields like max surge
2555-
if (max_surge or drain_timeout or node_soak_duration or max_unavailable) and node_image_only:
2555+
hasUpgradeSetting = max_surge or drain_timeout or node_soak_duration or max_unavailable
2556+
if hasUpgradeSetting and node_image_only:
25562557
raise MutuallyExclusiveArgumentError(
25572558
'Conflicting flags. Unable to specify max-surge/drain-timeout/node-soak-duration/max-unavailable with node-image-only.'
25582559
'If you want to use max-surge/drain-timeout/node-soak-duration with a node image upgrade, please first '

0 commit comments

Comments
 (0)