fix(region): guest without cpunumapin don't set params on save schedule result (#21233)

This commit is contained in:
wanyaoqi
2024-09-14 10:11:28 +08:00
committed by GitHub
parent f3cd59d5ca
commit 2e533b3a46
@@ -130,8 +130,6 @@ func (task *GuestMigrateTask) SaveScheduleResult(ctx context.Context, obj ISched
body.Set("target_host_id", jsonutils.NewString(targetHostId))
if len(target.CpuNumaPin) > 0 {
body.Set("target_cpu_numa_pin", jsonutils.Marshal(target.CpuNumaPin))
} else {
body.Set("target_cpu_numa_pin", jsonutils.JSONNull)
}
// for params notes