Skip to content

Commit 1b4d478

Browse files
authored
Merge pull request #6596 from damikag/master
Remove shadow err variable in deleteCreatedNodesWithErros func
2 parents 38124f2 + 49258da commit 1b4d478

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cluster-autoscaler/core/static_autoscaler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,8 @@ func (a *StaticAutoscaler) deleteCreatedNodesWithErrors() (bool, error) {
869869
if nodeGroup == nil {
870870
err = fmt.Errorf("node group %s not found", nodeGroupId)
871871
} else {
872-
opts, err := nodeGroup.GetOptions(a.NodeGroupDefaults)
872+
var opts *config.NodeGroupAutoscalingOptions
873+
opts, err = nodeGroup.GetOptions(a.NodeGroupDefaults)
873874
if err != nil {
874875
klog.Warningf("Failed to get node group options for %s: %s", nodeGroupId, err)
875876
continue

0 commit comments

Comments
 (0)