mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-11-03 21:05:35 +08:00
fix(region): private zone check vpc (#17899)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user