Skip to content

Commit

Permalink
OCM-11407 | ci: fix nil value return for editNodepoolValidation
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraj7 authored and openshift-cherrypick-robot committed Sep 25, 2024
1 parent f230f41 commit 5b8f7db
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 5b8f7db

Please sign in to comment.