Skip to content

Commit

Permalink
Merge pull request kubernetes#6758 from towca/jtuznik/cp-1.28
Browse files Browse the repository at this point in the history
[CA 1.28 kubernetes#6596 cherry-pick] Remove shadow err variable in deleteCreatedNodesWithErros func
  • Loading branch information
k8s-ci-robot authored Apr 24, 2024
2 parents 03f37df + f46412f commit b5ed8a3
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 @@ -848,7 +848,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 b5ed8a3

Please sign in to comment.