Skip to content

Commit

Permalink
backport of commit 760167d
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer committed Jan 31, 2025
1 parent e3e6b00 commit 561d2cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions agent/metadata/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ func IsConsulServer(m serf.Member) (bool, *Server) {
}
}

buildVersion, err := Build(&m)
if err != nil {
return false, nil
}

wanJoinPort := 0
wanJoinPortStr, ok := m.Tags["wan_join_port"]
if ok {
Expand Down Expand Up @@ -180,6 +175,11 @@ func IsConsulServer(m serf.Member) (bool, *Server) {

addr := &net.TCPAddr{IP: m.Addr, Port: port}

buildVersion, err := Build(&m)
if err != nil {
return false, nil
}

parts := &Server{
Name: m.Name,
ShortName: strings.TrimSuffix(m.Name, "."+datacenter),
Expand Down

0 comments on commit 561d2cc

Please sign in to comment.