diff --git a/cluster/cluster.go b/cluster/cluster.go index 3436ef77..43e86879 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -184,6 +184,9 @@ func (c *ClusterImpl) retryJoin(ctx context.Context) { } func (c *ClusterImpl) MembersFiltered(filter map[string]string, status, name string) ([]Member, error) { + if c.serf == nil { + return nil, fmt.Errorf("serf not initialized") + } return FilterMembers(toClusterMembers(c.serf.Members()), filter, status, name) }