From 58ff5e46cbe7394d048a74046cae7a3c870509d8 Mon Sep 17 00:00:00 2001 From: Kyle Havlovitz Date: Tue, 30 Oct 2018 15:52:54 -0700 Subject: [PATCH] fsm: add missing ID/datacenter to persistNodes --- agent/consul/fsm/snapshot_oss.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent/consul/fsm/snapshot_oss.go b/agent/consul/fsm/snapshot_oss.go index 3650add7a..d204121ad 100644 --- a/agent/consul/fsm/snapshot_oss.go +++ b/agent/consul/fsm/snapshot_oss.go @@ -82,7 +82,9 @@ func (s *snapshot) persistNodes(sink raft.SnapshotSink, for node := nodes.Next(); node != nil; node = nodes.Next() { n := node.(*structs.Node) req := structs.RegisterRequest{ + ID: n.ID, Node: n.Node, + Datacenter: n.Datacenter, Address: n.Address, TaggedAddresses: n.TaggedAddresses, NodeMeta: n.Meta,