mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): cloudpods userdata (#18118)
This commit is contained in:
@@ -92,6 +92,10 @@ func (self *SCloudpodsGuestDriver) IsSupportLiveMigrate() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (self *SCloudpodsGuestDriver) GetUserDataType() string {
|
||||
return cloudprovider.CLOUD_SHELL_WITHOUT_ENCRYPT
|
||||
}
|
||||
|
||||
func (self *SCloudpodsGuestDriver) ValidateResizeDisk(guest *models.SGuest, disk *models.SDisk, storage *models.SStorage) error {
|
||||
if guest.GetDiskIndex(disk.Id) <= 0 && guest.Status == api.VM_RUNNING {
|
||||
return httperrors.NewUnsupportOperationError("Cann't online resize root disk")
|
||||
|
||||
@@ -743,7 +743,7 @@ func (manager *SServerSkuManager) ListItemFilter(
|
||||
}
|
||||
|
||||
if domainStr := query.ProjectDomainId; len(domainStr) > 0 {
|
||||
domain, err := db.TenantCacheManager.FetchDomainByIdOrName(context.Background(), domainStr)
|
||||
domain, err := db.TenantCacheManager.FetchDomainByIdOrName(ctx, domainStr)
|
||||
if err != nil {
|
||||
if errors.Cause(err) == sql.ErrNoRows {
|
||||
return nil, httperrors.NewResourceNotFoundError2("domains", domainStr)
|
||||
|
||||
Reference in New Issue
Block a user