Skip to content

Commit

Permalink
list all peers in initial-cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k authored and hexfusion committed Mar 21, 2020
1 parent a3d054f commit 0430519
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ func (o *DiscoverEtcdInitialClusterOptions) Run() error {
if len(member.Name) == 0 { // this is the signal for whether or not a given peer is started
continue
}
etcdInitialClusterEntries = append(etcdInitialClusterEntries, fmt.Sprintf("%s=%s", member.Name, member.PeerURLs[0]))
for _, peerURL := range member.PeerURLs{
etcdInitialClusterEntries = append(etcdInitialClusterEntries, fmt.Sprintf("%s=%s", member.Name, peerURL))
}
}
if len(targetMember.Name) == 0 {
fmt.Fprintf(os.Stderr, "Adding the unstarted member to the end %s\n", o.TargetName)
Expand Down

0 comments on commit 0430519

Please sign in to comment.