mirror of
https://github.com/lingble/talos.git
synced 2025-11-02 05:28:09 +00:00
fix: properly compose pattern and header in etcd members output
Header was printed more than once. Signed-off-by: Artem Chernyshev <artem.0xD2@gmail.com>
This commit is contained in:
committed by
talos-bot
parent
0825cf11f4
commit
a26174b548
@@ -100,8 +100,8 @@ var etcdMemberListCmd = &cobra.Command{
|
||||
continue
|
||||
}
|
||||
|
||||
for _, member := range message.Members {
|
||||
if i == 0 {
|
||||
for j, member := range message.Members {
|
||||
if i == 0 && j == 0 {
|
||||
if node != "" {
|
||||
fmt.Fprintln(w, "NODE\tID\tHOSTNAME\tPEER URLS\tCLIENT URLS")
|
||||
pattern = "%s\t" + pattern
|
||||
|
||||
Reference in New Issue
Block a user