mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #357 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:hotfix/qj-fail-delete-sched-fail-server to release/2.0.0
* commit '5d7bdace41aeb5493f9ab10b730029325dd55478': 修正:无法删除sched_fail的主机
This commit is contained in:
@@ -119,7 +119,7 @@ func (self *SVirtualizedGuestDriver) RequestStopGuestForDelete(ctx context.Conte
|
||||
if host != nil && host.Enabled && host.HostStatus == models.HOST_ONLINE {
|
||||
return guest.StartGuestStopTask(ctx, task.GetUserCred(), true, task.GetTaskId())
|
||||
}
|
||||
if !jsonutils.QueryBoolean(task.GetParams(), "purge", false) {
|
||||
if host != nil && !jsonutils.QueryBoolean(task.GetParams(), "purge", false) {
|
||||
return fmt.Errorf("fail to contact host")
|
||||
}
|
||||
task.ScheduleRun(nil)
|
||||
|
||||
Reference in New Issue
Block a user