Skip to content

Commit

Permalink
no need to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nox-404 committed Feb 6, 2024
1 parent a8927ab commit ec77652
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scaleway/loadbalancers.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,13 +485,11 @@ func (l *loadbalancers) fetchLoadBalancer(ctx context.Context, clusterName strin
func (l *loadbalancers) getLoadbalancerByName(ctx context.Context, service *v1.Service) (*scwlb.LB, error) {
name := l.GetLoadBalancerName(ctx, "", service)

lbReq := &scwlb.ZonedAPIListLBsRequest{
var loadbalancer *scwlb.LB
resp, err := l.api.ListLBs(&scwlb.ZonedAPIListLBsRequest{
Name: &name,
Zone: getLoadBalancerZone(service),
}

var loadbalancer *scwlb.LB
resp, err := l.api.ListLBs(lbReq, scw.WithAllPages())
}, scw.WithAllPages())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit ec77652

Please sign in to comment.