Skip to content

Commit

Permalink
node_endpoint argument setup
Browse files Browse the repository at this point in the history
  • Loading branch information
langmartin committed Jun 7, 2019
1 parent cf1326c commit cfd3fa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nomad/node_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ func (n *Node) Deregister(args *structs.NodeDeregisterRequest, reply *structs.No
nodeIDs = append(nodeIDs, args.NodeID)
} else if args.NodeID != "" {
return fmt.Errorf("use only NodeIDs, the NodeID field is deprecated")
} else {
nodeIDs = args.NodeIDs
}

// Open state handles
Expand Down

0 comments on commit cfd3fa6

Please sign in to comment.