diff --git a/pkg/etcd/etcd.go b/pkg/etcd/etcd.go index 7cc7c78724..bc49209429 100644 --- a/pkg/etcd/etcd.go +++ b/pkg/etcd/etcd.go @@ -224,7 +224,7 @@ func (e *ETCD) Test(ctx context.Context) error { memberNameUrls = append(memberNameUrls, member.Name+"="+member.PeerURLs[0]) } } - return &MembershipError{Members: memberNameUrls, Self: e.name + "=" + e.address} + return &MembershipError{Members: memberNameUrls, Self: e.name + "=" + e.peerURL()} } // DBDir returns the path to dataDir/db/etcd