mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 19:35:41 +03:00
Use advertise addr not 'unique.network.ip' in verbose node-status
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user