Skip to content

Commit

Permalink
Fix nil pointer dereference in scale command
Browse files Browse the repository at this point in the history
Caused by not taking nodegroup from config file
  • Loading branch information
michaelbeaumont committed Jul 10, 2020
1 parent e7ad15b commit 863b544
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ctl/cmdutils/scale.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func NewScaleNodeGroupLoader(cmd *Cmd, ng *api.NodeGroup) ClusterConfigLoader {
if err := validateNumberOfNodes(loadedNG); err != nil {
return err
}
*ng = *loadedNG
l.Plan = false
return nil
}
Expand Down

0 comments on commit 863b544

Please sign in to comment.