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

This commit is contained in:
屈轩
2024-07-05 16:23:33 +08:00
committed by GitHub
parent 7a0b878cac
commit 906c86cecf
+4
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,