mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): sync remove backend group (#22758)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user