From 2e533b3a46c450e5801ebf9f45561e6aade0eb1c Mon Sep 17 00:00:00 2001 From: wanyaoqi <18528551+wanyaoqi@users.noreply.github.com> Date: Sat, 14 Sep 2024 10:11:28 +0800 Subject: [PATCH] fix(region): guest without cpunumapin don't set params on save schedule result (#21233) --- pkg/compute/tasks/guest_live_migrate_task.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/compute/tasks/guest_live_migrate_task.go b/pkg/compute/tasks/guest_live_migrate_task.go index 70a7fc39ff..b054a36c0e 100644 --- a/pkg/compute/tasks/guest_live_migrate_task.go +++ b/pkg/compute/tasks/guest_live_migrate_task.go @@ -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