consul/command/segment_stub.go

17 lines
403 B
Go
Raw Normal View History

// +build !ent
package command
2017-09-01 17:18:43 +00:00
import consulapi "github.com/hashicorp/consul/api"
// getSegmentMembers returns an empty list since network segments are not
// supported in OSS Consul.
func getSegmentMembers(client *consulapi.Client) ([]*consulapi.AgentMember, error) {
members, err := client.Agent().MembersOpts(consulapi.MembersOpts{})
if err != nil {
2017-09-01 17:18:43 +00:00
return nil, err
}
return members, nil
}