fix(region): vpc purge

This commit is contained in:
ioito
2023-05-29 16:45:01 +08:00
parent 815764f404
commit 808226d038
+2 -2
View File
@@ -235,8 +235,8 @@ func (self *SVpc) ValidateDeleteCondition(ctx context.Context, info *api.VpcDeta
if info.NatgatewayCount > 0 {
return httperrors.NewNotEmptyError("VPC not empty, please delete nat gateway first")
}
if info.RequestVpcPeerCount+info.AcceptVpcPeerCount > 0 {
return httperrors.NewNotEmptyError("VPC peering not empty, please delete vpc peering first")
if info.RequestVpcPeerCount > 0 {
return httperrors.NewNotEmptyError("VPC not empty, please delete vpc peering first")
}
return self.SEnabledStatusInfrasResourceBase.ValidateDeleteCondition(ctx, nil)