mirror of https://github.com/hashicorp/consul
Remaps servers to "<all>" only when listing multiple segments.
parent
67b19ac065
commit
d12b172a5d
|
@ -83,7 +83,7 @@ func (c *MembersCommand) Run(args []string) int {
|
|||
if member.Tags["segment"] == "" {
|
||||
member.Tags["segment"] = "<default>"
|
||||
}
|
||||
if member.Tags["role"] == "consul" {
|
||||
if segment == consulapi.AllSegments && member.Tags["role"] == "consul" {
|
||||
member.Tags["segment"] = "<all>"
|
||||
}
|
||||
statusString := serf.MemberStatus(member.Status).String()
|
||||
|
|
Loading…
Reference in New Issue