fix(region): sync purge vpc

This commit is contained in:
ioito
2023-04-12 15:26:23 +08:00
parent f8c1c9944d
commit e372b22f89
+1 -1
View File
@@ -519,7 +519,7 @@ func (self *SVpc) syncRemoveCloudVpc(ctx context.Context, userCred mcclient.Toke
err = self.SetStatus(userCred, api.VPC_STATUS_UNKNOWN, "sync to delete")
}
} else {
err = self.RealDelete(ctx, userCred)
err = self.Purge(ctx, userCred)
if err == nil {
notifyclient.EventNotify(ctx, userCred, notifyclient.SEventNotifyParam{
Obj: self,