diff --git a/nomad/structs/structs.go b/nomad/structs/structs.go index a79f1071f..6e3754d55 100644 --- a/nomad/structs/structs.go +++ b/nomad/structs/structs.go @@ -1171,8 +1171,11 @@ func (n *Node) TerminalStatus() bool { // Stub returns a summarized version of the node func (n *Node) Stub() *NodeListStub { + + addr, _, _ := net.SplitHostPort(n.HTTPAddr) + return &NodeListStub{ - Address: n.Attributes["unique.network.ip-address"], + Address: addr, ID: n.ID, Datacenter: n.Datacenter, Name: n.Name,