mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Automatic merge from release/2.4.0 -> release/2.5.0
* commit '196fefd30e30c23f7bfe6b55cc25b22f1ec13609': server rebuild root状态没有立即设置,导致yunion-test脚本失败
This commit is contained in:
@@ -1060,6 +1060,7 @@ func (self *SGuest) StartRebuildRootTask(ctx context.Context, userCred mcclient.
|
||||
} else {
|
||||
data.Set("all_disks", jsonutils.JSONFalse)
|
||||
}
|
||||
self.SetStatus(userCred, VM_REBUILD_ROOT, "request start rebuild root")
|
||||
if self.GetHypervisor() == HYPERVISOR_BAREMETAL {
|
||||
task, err := taskman.TaskManager.NewTask(ctx, "BaremetalServerRebuildRootTask", self, userCred, data, "", "", nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user