scheduler: fix missing err assignment
This commit is contained in:
parent
6d9bdeaba0
commit
6b6777359b
|
@ -596,7 +596,7 @@ func (s *GenericScheduler) findPreferredNode(place placementResult) (*structs.No
|
|||
if prev := place.PreviousAllocation(); prev != nil && place.TaskGroup().EphemeralDisk.Sticky == true {
|
||||
var preferredNode *structs.Node
|
||||
ws := memdb.NewWatchSet()
|
||||
preferredNode, err = s.state.NodeByID(ws, prev.NodeID)
|
||||
preferredNode, err := s.state.NodeByID(ws, prev.NodeID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue