From 5174cbff84b0795d4cb36eb8980d0d5336091ac9 Mon Sep 17 00:00:00 2001 From: Vijay Date: Tue, 11 Jul 2023 09:35:02 +0530 Subject: [PATCH] Update agent/consul/state/catalog.go comments updated Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com> --- agent/consul/state/catalog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/consul/state/catalog.go b/agent/consul/state/catalog.go index f3b1a16c11..4e9fcf716c 100644 --- a/agent/consul/state/catalog.go +++ b/agent/consul/state/catalog.go @@ -3450,7 +3450,7 @@ func parseNodes(tx ReadTxn, ws memdb.WatchSet, idx uint64, ws.AddWithLimit(watchLimit, services.WatchCh(), allServicesCh) for service := services.Next(); service != nil; service = services.Next() { ns := service.(*structs.ServiceNode).ToNodeService() - //Update Node Meta with version from Consul Service, if already not exists in Node Meta + // If version isn't defined in node meta, set it from the Consul service meta if _, ok := dump.Meta[structs.MetaConsulVersion]; !ok && ns.ID == "consul" && ns.Meta["version"] != "" { if dump.Meta == nil { dump.Meta = make(map[string]string)