From 03cbe7cd71134b5f96c149bff7ebdc39c7e6dee3 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Thu, 16 Jan 2025 14:54:42 +0100 Subject: [PATCH] server: Fix error message format when detailing cluster metadata. (#24874) --- nomad/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/server.go b/nomad/server.go index 58a611da8..ba4d9ad59 100644 --- a/nomad/server.go +++ b/nomad/server.go @@ -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