Skip to content

Commit

Permalink
Merge pull request #6596 from damikag/master
Browse files Browse the repository at this point in the history
Remove shadow err variable in deleteCreatedNodesWithErros func
  • Loading branch information
k8s-ci-robot authored Mar 15, 2024
2 parents 38124f2 + 49258da commit 1b4d478
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 @@ -869,7 +869,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 1b4d478

Please sign in to comment.