From bfd9fbdfa631d22e1a92aa09db344e3756afd185 Mon Sep 17 00:00:00 2001 From: Piotr Kazmierczak <470696+pkazmierczak@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:23:33 +0100 Subject: [PATCH] extra check --- scheduler/generic_sched.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scheduler/generic_sched.go b/scheduler/generic_sched.go index 256c6272a8..014752355d 100644 --- a/scheduler/generic_sched.go +++ b/scheduler/generic_sched.go @@ -706,7 +706,9 @@ func (s *GenericScheduler) computePlacements(destructive, place []placementResul updateRescheduleTracker(alloc, prevAllocation, now) } - alloc.HostVolumeIDs = prevAllocation.HostVolumeIDs + if len(prevAllocation.HostVolumeIDs) > 0 { + alloc.HostVolumeIDs = prevAllocation.HostVolumeIDs + } // If the allocation has task handles, // copy them to the new allocation