Skip to content

Commit

Permalink
fsm variable names for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
langmartin committed Jun 7, 2019
1 parent 0caccf1 commit df405e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nomad/fsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,14 @@ func (n *nomadFSM) applyDeregisterNode(buf []byte, index uint64) interface{} {
}

// Messages pre 0.9.3 use a single NodeID
var ids []string
var nodeIDs []string
if len(req.NodeIDs) == 0 {
ids = []string{req.NodeID}
nodeIDs = append(nodeIDs, req.NodeID)
} else {
ids = req.NodeIDs
nodeIDs = req.NodeIDs
}

if err := n.state.DeleteNode(index, ids); err != nil {
if err := n.state.DeleteNode(index, nodeIDs); err != nil {
n.logger.Error("DeleteNode failed", "error", err)
return err
}
Expand Down

0 comments on commit df405e0

Please sign in to comment.