Skip to content

Commit ccf654a

Browse files
authored
Merge pull request #187 from jtherin/fixincorrectfilter
fix(lb): do not block lb if filtered nodes are good
2 parents 9fa98d5 + 1debeac commit ccf654a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scaleway/loadbalancers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,11 +584,11 @@ func (l *loadbalancers) updateLoadBalancer(ctx context.Context, loadbalancer *sc
584584
return fmt.Errorf("invalid value for annotation %s: expected boolean", serviceAnnotationLoadBalancerExternallyManaged)
585585
}
586586

587+
nodes = filterNodes(service, nodes)
587588
if err := nodesInitialized(nodes); err != nil {
588589
return err
589590
}
590591

591-
nodes = filterNodes(service, nodes)
592592
if l.pnID != "" {
593593
respPN, err := l.api.ListLBPrivateNetworks(&scwlb.ZonedAPIListLBPrivateNetworksRequest{
594594
Zone: loadbalancer.Zone,

0 commit comments

Comments
 (0)