Skip to content

Commit a3fcece

Browse files
occm: Fix LoadBalancer deletion when the underlying LoadBalancer does not exist (kubernetes#1913) (kubernetes#1917)
Co-authored-by: Ismail Alidzhikov <[email protected]>
1 parent 619e9a5 commit a3fcece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/openstack/loadbalancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ func (lbaas *LbaasV2) GetLoadBalancer(ctx context.Context, clusterName string, s
674674
} else {
675675
loadbalancer, err = getLoadbalancerByName(lbaas.lb, name, legacyName)
676676
}
677-
if err == cpoerrors.ErrNotFound {
677+
if err != nil && cpoerrors.IsNotFound(err) {
678678
return nil, false, nil
679679
}
680680
if loadbalancer == nil {

0 commit comments

Comments
 (0)