diff --git a/scheduler/generic_sched.go b/scheduler/generic_sched.go index 373d2f9bf60..72991d694dd 100644 --- a/scheduler/generic_sched.go +++ b/scheduler/generic_sched.go @@ -928,7 +928,7 @@ func (s *GenericScheduler) findPreferredNode(place placementResult) (*structs.No // if this node has at least one of the allocation volumes, it's a // preferred one for _, vol := range preferredNode.HostVolumes { - if slices.Contains(prev.HostVolumeIDs, vol.VolumeID) { + if slices.Contains(prev.HostVolumeIDs, vol.ID) { return preferredNode, nil } }