mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): server sku create with region id (#23508)
This commit is contained in:
@@ -354,6 +354,7 @@ func (self *SServerSkuManager) ValidateCreateData(ctx context.Context, userCred
|
||||
input.Provider = region.Provider
|
||||
}
|
||||
if input.Provider == api.CLOUD_PROVIDER_ONECLOUD {
|
||||
input.CloudregionId = api.DEFAULT_REGION_ID
|
||||
} else if utils.IsInStringArray(input.Provider, api.PRIVATE_CLOUD_PROVIDERS) {
|
||||
input.Status = api.SkuStatusCreating
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user