fix(region): uis vm disk create (#21772)

This commit is contained in:
屈轩
2024-12-09 15:05:23 +08:00
committed by GitHub
parent 598f13ff77
commit ce680bb15d
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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{})
}