mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
server: Fix error message format when detailing cluster metadata. (#24874)
This commit is contained in:
@@ -2172,7 +2172,7 @@ func (s *Server) ClusterMetadata() (structs.ClusterMetadata, error) {
|
||||
|
||||
// if we are not the leader, nothing more we can do
|
||||
if !s.IsLeader() {
|
||||
return structs.ClusterMetadata{}, errors.New("cluster ID not ready {}yet")
|
||||
return structs.ClusterMetadata{}, errors.New("cluster ID not ready yet")
|
||||
}
|
||||
|
||||
// we are the leader, try to generate the ID now
|
||||
|
||||
Reference in New Issue
Block a user