fix(region): vendor update for support gcp global lb sync (#20711)

This commit is contained in:
屈轩
2024-07-05 16:23:06 +08:00
committed by GitHub
parent b69ca75203
commit 28e322427a

View File

@@ -1146,6 +1146,10 @@ func (lb *SLoadbalancer) syncRemoveCloudLoadbalancer(ctx context.Context, userCr
if err != nil { // cannot delete
return lb.SetStatus(ctx, userCred, api.LB_STATUS_UNKNOWN, "sync to delete")
}
err = lb.DeleteEip(ctx, userCred, false)
if err != nil {
return err
}
notifyclient.EventNotify(ctx, userCred, notifyclient.SEventNotifyParam{
Obj: lb,
Action: notifyclient.ActionSyncDelete,