From 064c23040e1be76dba365052d5f92480dfcac28b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Fri, 20 Jun 2025 19:38:18 +0800 Subject: [PATCH] fix(region): sync remove backend group (#22758) --- pkg/compute/models/loadbalancerbackendgroups.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/compute/models/loadbalancerbackendgroups.go b/pkg/compute/models/loadbalancerbackendgroups.go index 005e101899..98fe734c11 100644 --- a/pkg/compute/models/loadbalancerbackendgroups.go +++ b/pkg/compute/models/loadbalancerbackendgroups.go @@ -692,11 +692,6 @@ func (lbbg *SLoadbalancerBackendGroup) syncRemove(ctx context.Context, userCred lockman.LockObject(ctx, lbbg) defer lockman.ReleaseObject(ctx, lbbg) - err := lbbg.ValidateDeleteCondition(ctx, nil) - if err != nil { // cannot delete - lbbg.SetStatus(ctx, userCred, api.LB_STATUS_UNKNOWN, "sync to delete") - return errors.Wrapf(err, "ValidateDeleteCondition") - } notifyclient.EventNotify(ctx, userCred, notifyclient.SEventNotifyParam{ Obj: lbbg, Action: notifyclient.ActionSyncDelete,