Skip to content

Commit

Permalink
Update agent/consul/state/catalog.go
Browse files Browse the repository at this point in the history
comments updated

Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>
  • Loading branch information
vijayraghav-io and jkirschner-hashicorp authored Jul 11, 2023
1 parent 7f1d619 commit 5174cbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/consul/state/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5174cbf

Please sign in to comment.