mirror of https://github.com/hashicorp/consul
Remove duplicate error message
parent
0e33e2ecab
commit
f8261330f0
|
@ -2,17 +2,14 @@
|
|||
|
||||
package command
|
||||
|
||||
import (
|
||||
consulapi "github.com/hashicorp/consul/api"
|
||||
"fmt"
|
||||
)
|
||||
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 {
|
||||
return nil, fmt.Errorf("Error retrieving members: %s", err)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return members, nil
|
||||
|
|
Loading…
Reference in New Issue