mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: mark unstarted member
This commit is contained in:
parent
3a132ad8ef
commit
b218fc67e4
@ -104,9 +104,13 @@ func actionMemberList(c *cli.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, m := range members {
|
for _, m := range members {
|
||||||
|
if len(m.Name) == 0 {
|
||||||
|
fmt.Printf("%s[unstarted]: peerURLs=%s\n", m.ID, strings.Join(m.PeerURLs, ","))
|
||||||
|
} else {
|
||||||
fmt.Printf("%s: name=%s peerURLs=%s clientURLs=%s\n", m.ID, m.Name, strings.Join(m.PeerURLs, ","), strings.Join(m.ClientURLs, ","))
|
fmt.Printf("%s: name=%s peerURLs=%s clientURLs=%s\n", m.ID, m.Name, strings.Join(m.PeerURLs, ","), strings.Join(m.ClientURLs, ","))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func actionMemberAdd(c *cli.Context) {
|
func actionMemberAdd(c *cli.Context) {
|
||||||
args := c.Args()
|
args := c.Args()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user