fix(region): do not change disk status on migrating

This commit is contained in:
wanyaoqi
2020-12-18 18:24:32 +08:00
parent 15e1058519
commit 97864f96eb
+2 -1
View File
@@ -209,7 +209,8 @@ func (self *SGuestdisk) GetJsonDescAtHost(host *SHost) jsonutils.JSONObject {
localpath := disk.GetPathAtHost(host)
if len(localpath) == 0 {
desc.Add(jsonutils.JSONTrue, "migrating")
disk.SetStatus(nil, api.DISK_START_MIGRATE, "migration")
// not used yet
// disk.SetStatus(nil, api.DISK_START_MIGRATE, "migration")
} else {
desc.Add(jsonutils.NewString(localpath), "path")
}