fix(region): private zone check vpc (#17899)

This commit is contained in:
屈轩
2023-08-31 16:27:40 +08:00
committed by GitHub
parent e785dc1261
commit f9d1ee0a88
+1 -1
View File
@@ -156,7 +156,7 @@ func (manager *SDnsZoneManager) ValidateCreateData(
if !gotypes.IsNil(provider) {
switch provider.Provider {
case api.CLOUD_PROVIDER_AWS:
if len(input.VpcIds) == 0 {
if len(input.VpcIds) == 0 && input.ZoneType == string(cloudprovider.PrivateZone) {
return nil, httperrors.NewMissingParameterError("vpc_ids")
}
}