Skip to content

Commit

Permalink
correct findPreferredNode
Browse files Browse the repository at this point in the history
  • Loading branch information
pkazmierczak committed Dec 11, 2024
1 parent a01efef commit 43f19f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/generic_sched.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 43f19f8

Please sign in to comment.