We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1670ecc commit ab0c32cCopy full SHA for ab0c32c
internal/cmd/beta/alb/list/list.go
@@ -75,7 +75,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
75
return fmt.Errorf("list load balancerse: %w", err)
76
}
77
78
- if items := response.LoadBalancers; items != nil && len(*items) == 0 {
+ if items := response.LoadBalancers; items == nil || len(*items) == 0 {
79
p.Info("No load balancers found for project %q", projectLabel)
80
} else {
81
if model.Limit != nil && len(*items) > int(*model.Limit) {
0 commit comments