node_endpoint argument setup

This commit is contained in:
Lang Martin 2019-06-07 14:26:29 -04:00
parent 6dbf5d7d13
commit 82349aba5d
1 changed files with 2 additions and 0 deletions

View File

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