Skip to content

Commit

Permalink
Merge pull request #6757 from towca/jtuznik/cp-1.29
Browse files Browse the repository at this point in the history
[CA 1.29 #6596 cherry-pick] Remove shadow err variable in deleteCreatedNodesWithErros func
  • Loading branch information
k8s-ci-robot authored Apr 24, 2024
2 parents a09b60a + 9aa31f3 commit 06f177f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cluster-autoscaler/core/static_autoscaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,8 @@ func (a *StaticAutoscaler) deleteCreatedNodesWithErrors() (bool, error) {
if nodeGroup == nil {
err = fmt.Errorf("node group %s not found", nodeGroupId)
} else {
opts, err := nodeGroup.GetOptions(a.NodeGroupDefaults)
var opts *config.NodeGroupAutoscalingOptions
opts, err = nodeGroup.GetOptions(a.NodeGroupDefaults)
if err != nil {
klog.Warningf("Failed to get node group options for %s: %s", nodeGroupId, err)
continue
Expand Down

0 comments on commit 06f177f

Please sign in to comment.