Merge pull request #16441 from ioito/hotfix/qx-sync-vpc-purge

fix(region): sync purge vpc
This commit is contained in:
Zexi Li
2023-04-12 20:46:12 +08:00
committed by GitHub
+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,