Skip to content

Commit d2e7189

Browse files
committed
add
1 parent 47cd676 commit d2e7189

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tencentcloud/services/tke/resource_tc_kubernetes_node_pool_extension.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,9 @@ func waitNodePoolInitializing(ctx context.Context, clusterId, nodePoolId string)
15001500
return nil
15011501
})
15021502

1503-
return fmt.Errorf("Node pool scaling failed, Reason: %s\nPlease check your resource inventory, Or adjust `desired_capacity`, `scale_tolerance` and `instance_type`, Then try again.", errFmt)
1503+
if err != nil {
1504+
return fmt.Errorf("Node pool scaling failed, Reason: %s\nPlease check your resource inventory, Or adjust `desired_capacity`, `scale_tolerance` and `instance_type`, Then try again.", errFmt)
1505+
}
15041506
} else {
15051507
return fmt.Errorf("Node pool scaling failed, Desired value: %d, Actual value: %d, Scale tolerance: %d%%\nPlease check your resource inventory, Or adjust `desired_capacity`, `scale_tolerance` and `instance_type`, Then try again.", desiredCapacity, currentNormal, scaleTolerance)
15061508
}

0 commit comments

Comments
 (0)