Skip to content

Commit ab0c32c

Browse files
committed
feat(alb): bugfix
1 parent 1670ecc commit ab0c32c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cmd/beta/alb/list/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
7575
return fmt.Errorf("list load balancerse: %w", err)
7676
}
7777

78-
if items := response.LoadBalancers; items != nil && len(*items) == 0 {
78+
if items := response.LoadBalancers; items == nil || len(*items) == 0 {
7979
p.Info("No load balancers found for project %q", projectLabel)
8080
} else {
8181
if model.Limit != nil && len(*items) > int(*model.Limit) {

0 commit comments

Comments
 (0)