Remove duplicate error message
This commit is contained in:
parent
ff994e9ade
commit
1a36ca524f
|
@ -2,17 +2,14 @@
|
||||||
|
|
||||||
package command
|
package command
|
||||||
|
|
||||||
import (
|
import consulapi "github.com/hashicorp/consul/api"
|
||||||
consulapi "github.com/hashicorp/consul/api"
|
|
||||||
"fmt"
|
|
||||||
)
|
|
||||||
|
|
||||||
// getSegmentMembers returns an empty list since network segments are not
|
// getSegmentMembers returns an empty list since network segments are not
|
||||||
// supported in OSS Consul.
|
// supported in OSS Consul.
|
||||||
func getSegmentMembers(client *consulapi.Client) ([]*consulapi.AgentMember, error) {
|
func getSegmentMembers(client *consulapi.Client) ([]*consulapi.AgentMember, error) {
|
||||||
members, err := client.Agent().MembersOpts(consulapi.MembersOpts{})
|
members, err := client.Agent().MembersOpts(consulapi.MembersOpts{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("Error retrieving members: %s", err)
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return members, nil
|
return members, nil
|
||||||
|
|
Loading…
Reference in New Issue