We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81c8ed3 commit 669c082Copy full SHA for 669c082
src/aks-preview/azext_aks_preview/custom.py
@@ -1579,7 +1579,7 @@ def aks_scale(cmd, # pylint: disable=unused-argument
1579
)
1580
1581
for agent_profile in (instance.agent_pool_profiles or []):
1582
- if agent_profile.name == nodepool_name or (nodepool_name == "" and len(instance.agent_pool_profiles) == 1):
+ if agent_profile.name == nodepool_name or (nodepool_name == "" and instance.agent_pool_profiles and len(instance.agent_pool_profiles) == 1):
1583
if agent_profile.enable_auto_scaling:
1584
raise CLIError(
1585
"Cannot scale cluster autoscaler enabled node pool.")
0 commit comments