Skip to content

Commit

Permalink
Merge pull request #2504 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2501-to-release_1.2.46

[release_1.2.46] OCM-11407 | ci: fix nil value return for editNodepoolValidation
  • Loading branch information
gdbranco committed Sep 25, 2024
2 parents f230f41 + 5b8f7db commit e6d67f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/machinepool/machinepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,8 @@ func editNodePool(cmd *cobra.Command, nodePoolID string,
return fmt.Errorf("Failed to get autoscaling or replicas: '%s'", err)
}

if validateNodePoolEdit(cmd, autoscaling, replicas, minReplicas, maxReplicas) != nil {
err = validateNodePoolEdit(cmd, autoscaling, replicas, minReplicas, maxReplicas)
if err != nil {
return err
}

Expand Down

0 comments on commit e6d67f8

Please sign in to comment.