mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-31 02:38:07 +08:00
Merge pull request #11318 from ioito/hotfix/qx-guest-delete-with-disk
fix(region): avoid guest delete not with disks
This commit is contained in:
@@ -210,7 +210,7 @@ func (self *GuestDeleteTask) OnSyncConfigComplete(ctx context.Context, obj db.IS
|
||||
guest.DetachScheduledTask(ctx, self.UserCred)
|
||||
guestStatus, _ := self.Params.GetString("guest_status")
|
||||
if !utils.IsInStringArray(guestStatus, []string{
|
||||
api.VM_SCHEDULE_FAILED, api.VM_NETWORK_FAILED, api.VM_DISK_FAILED,
|
||||
api.VM_SCHEDULE_FAILED, api.VM_NETWORK_FAILED,
|
||||
api.VM_CREATE_FAILED, api.VM_DEVICE_FAILED}) {
|
||||
self.StartPendingDeleteGuest(ctx, guest)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user