Skip to content

Commit

Permalink
Update pkg/cfn/manager/nodegroup.go
Browse files Browse the repository at this point in the history
Co-authored-by: Chetan Patwal <cPu1@users.noreply.github.com>
  • Loading branch information
Jake Klein and cPu1 committed Apr 9, 2021
1 parent 6f55f4b commit 92d7c9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/cfn/manager/nodegroup.go
Expand Up @@ -202,9 +202,7 @@ func (c *StackCollection) GetUnmanagedNodeGroupSummaries(name string) ([]*NodeGr
summary.MinSize = int(*scalingGroup.MinSize)
summary.MaxSize = int(*scalingGroup.MaxSize)

if name == "" {
summaries = append(summaries, summary)
} else if summary.Name == name {
if name == "" || summary.Name == name {
summaries = append(summaries, summary)
}
}
Expand Down

0 comments on commit 92d7c9c

Please sign in to comment.