From 82349aba5d99d715895a3f249cc174fcd12ec492 Mon Sep 17 00:00:00 2001 From: Lang Martin Date: Fri, 7 Jun 2019 14:26:29 -0400 Subject: [PATCH] node_endpoint argument setup --- nomad/node_endpoint.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nomad/node_endpoint.go b/nomad/node_endpoint.go index cc0965e49..b0db5faf3 100644 --- a/nomad/node_endpoint.go +++ b/nomad/node_endpoint.go @@ -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