scheduler: fix missing err assignment

This commit is contained in:
Nick Ethier 2018-07-11 14:27:10 -04:00
parent 6d9bdeaba0
commit 6b6777359b
No known key found for this signature in database
GPG Key ID: 07C1A3ECED90D24A
1 changed files with 1 additions and 1 deletions

View File

@ -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
}