Skip to content

Commit f49806a

Browse files
committed
force delete auto created clb when port pool is been deleted
Signed-off-by: roc <roc@imroc.cc>
1 parent be1faf0 commit f49806a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/clb/instance.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func Delete(ctx context.Context, region string, lbIds ...string) error {
114114
req := clb.NewDeleteLoadBalancerRequest()
115115
for _, lbId := range lbIds {
116116
req.LoadBalancerIds = append(req.LoadBalancerIds, &lbId)
117+
req.ForceDelete = common.BoolPtr(true)
117118
}
118119
client := GetClient(region)
119120
resp, err := client.DeleteLoadBalancerWithContext(ctx, req)

0 commit comments

Comments
 (0)