We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7770637 commit 359ee2eCopy full SHA for 359ee2e
src/azure-cli/azure/cli/command_modules/servicefabric/custom.py
@@ -673,7 +673,8 @@ def update_cluster_reliability_level(cmd,
673
if instance_target == instance_now:
674
return cluster
675
if instance_target > instance_now:
676
- if vmss.get('sku', {}).get('capacity') is not None and vmss.get('sku', {}).get('capacity') < instance_target:
+ capacity = vmss.get('sku', {}).get('capacity')
677
+ if capacity is not None and capacity < instance_target:
678
if auto_add_node is not True:
679
raise CLIError('Please use --auto_add_node to automatically increase the nodes,{} requires {} nodes, but currenty there are {}'.
680
format(reliability_level, instance_target, vmss['sku']['capacity']))
0 commit comments