node_endpoint argument setup
This commit is contained in:
parent
6dbf5d7d13
commit
82349aba5d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue