Skip to content

Commit 359ee2e

Browse files
committed
Update code
1 parent 7770637 commit 359ee2e

File tree

1 file changed

+2
-1
lines changed
  • src/azure-cli/azure/cli/command_modules/servicefabric

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,8 @@ def update_cluster_reliability_level(cmd,
673673
if instance_target == instance_now:
674674
return cluster
675675
if instance_target > instance_now:
676-
if vmss.get('sku', {}).get('capacity') is not None and vmss.get('sku', {}).get('capacity') < instance_target:
676+
capacity = vmss.get('sku', {}).get('capacity')
677+
if capacity is not None and capacity < instance_target:
677678
if auto_add_node is not True:
678679
raise CLIError('Please use --auto_add_node to automatically increase the nodes,{} requires {} nodes, but currenty there are {}'.
679680
format(reliability_level, instance_target, vmss['sku']['capacity']))

0 commit comments

Comments
 (0)