mirror of
https://github.com/status-im/consul.git
synced 2025-02-22 18:38:19 +00:00
Remaps servers to "<all>" only when listing multiple segments.
This commit is contained in:
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…
x
Reference in New Issue
Block a user