Skip to content

Commit

Permalink
fix if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud Saada committed Apr 20, 2020
1 parent 4e7da83 commit 10a8a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cfn/builder/nodegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func nodeGroupResource(launchTemplateName *gfn.Value, vpcZoneIdentifier interfac
if ng.MaxSize != nil {
ngProps["MaxSize"] = fmt.Sprintf("%d", *ng.MaxSize)
}
if len(ng.MetricsCollection) {
if len(ng.MetricsCollection) > 0 {
ngProps["MetricsCollection"] = ng.MetricsCollection
}
if len(ng.ClassicLoadBalancerNames) > 0 {
Expand Down

0 comments on commit 10a8a3b

Please sign in to comment.