mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): uis vm disk create (#21772)
This commit is contained in:
@@ -141,7 +141,7 @@ func (self *SUisGuestDriver) ValidateCreateData(ctx context.Context, userCred mc
|
||||
}
|
||||
|
||||
func (self *SUisGuestDriver) GetGuestInitialStateAfterCreate() string {
|
||||
return api.VM_RUNNING
|
||||
return api.VM_READY
|
||||
}
|
||||
|
||||
func (self *SUisGuestDriver) GetGuestInitialStateAfterRebuild() string {
|
||||
|
||||
@@ -452,6 +452,10 @@ type SangForGuestCreateDiskTask struct {
|
||||
NutanixGuestCreateDiskTask
|
||||
}
|
||||
|
||||
type UisGuestCreateDiskTask struct {
|
||||
NutanixGuestCreateDiskTask
|
||||
}
|
||||
|
||||
func init() {
|
||||
taskman.RegisterTask(GuestCreateBackupDisksTask{})
|
||||
taskman.RegisterTask(GuestCreateDiskTask{})
|
||||
@@ -462,4 +466,5 @@ func init() {
|
||||
taskman.RegisterTask(NutanixGuestCreateDiskTask{})
|
||||
taskman.RegisterTask(CloudpodsGuestCreateDiskTask{})
|
||||
taskman.RegisterTask(SangForGuestCreateDiskTask{})
|
||||
taskman.RegisterTask(UisGuestCreateDiskTask{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user