Remaps servers to "<all>" only when listing multiple segments.

This commit is contained in:
James Phillips 2017-09-05 13:50:38 -07:00
parent aecf890054
commit cc6797dd75
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 1 additions and 1 deletions

View File

@ -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()