mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): esxi add vmdk disk
This commit is contained in:
@@ -194,6 +194,13 @@ func (self *SESXiGuestDriver) GetChangeConfigStatus(guest *models.SGuest) ([]str
|
||||
return []string{api.VM_READY}, nil
|
||||
}
|
||||
|
||||
func (self *SESXiGuestDriver) ValidateChangeConfig(ctx context.Context, userCred mcclient.TokenCredential, guest *models.SGuest, cpuChanged bool, memChanged bool, newDisks []*api.DiskConfig) error {
|
||||
for i := range newDisks {
|
||||
newDisks[i].Format = "vmdk"
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *SESXiGuestDriver) CanKeepDetachDisk() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user