Skip to content

Commit

Permalink
Remove shadow err variable in deleteCreatedNodesWithErros func
Browse files Browse the repository at this point in the history
  • Loading branch information
damikag authored and towca committed Apr 24, 2024
1 parent a09b60a commit 9aa31f3
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 9aa31f3

Please sign in to comment.