agent: fix etcd2 name

This commit is contained in:
Gyu-Ho Lee 2016-03-22 02:06:54 -07:00
parent ef66494514
commit 1f76ea110b
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ func (t *transporterServer) Transfer(ctx context.Context, r *Request) (*Response
}
clusterStr := strings.Join(members, ",")
flags := []string{
"--name", fmt.Sprintf("etcd-%d", t.req.EtcdServerIndex),
"--name", fmt.Sprintf("etcd-%d", t.req.EtcdServerIndex+1),
"--data-dir", etcdDataDir,
"--listen-client-urls", clientURLs[t.req.EtcdServerIndex],