mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
fix: default cloud region init error (#23478)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -711,6 +711,7 @@ func (manager *SCloudregionManager) InitializeData() error {
|
||||
defRegion.Description = "Default Region"
|
||||
defRegion.Status = api.CLOUD_REGION_STATUS_INSERVER
|
||||
defRegion.Provider = api.CLOUD_PROVIDER_ONECLOUD
|
||||
defRegion.SetModelManager(manager, &defRegion)
|
||||
err := manager.TableSpec().Insert(context.TODO(), &defRegion)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "insert default region")
|
||||
|
||||
Reference in New Issue
Block a user