From 0d6dcba38a1494a1ab779ffdb805067e4161b3e1 Mon Sep 17 00:00:00 2001 From: David McFarlane <54093156+Prepultrue@users.noreply.github.com> Date: Tue, 1 Nov 2022 13:38:19 +1100 Subject: [PATCH] Fix use of uninitialised Tags map --- internal/pkg/overlay/datastructure.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/pkg/overlay/datastructure.go b/internal/pkg/overlay/datastructure.go index 8e0ed648..1838900b 100644 --- a/internal/pkg/overlay/datastructure.go +++ b/internal/pkg/overlay/datastructure.go @@ -83,6 +83,7 @@ func InitStruct(nodeInfo node.NodeInfo) TemplateStruct { dt := time.Now() tstruct.BuildTime = dt.Format("01-02-2006 15:04:05 MST") tstruct.BuildTimeUnix = strconv.FormatInt(dt.Unix(), 10) + tstruct.NodeConf.Tags = map[string]string{} tstruct.NodeConf.GetFrom(nodeInfo) // FIXME: Set ipCIDR address at this point, will fail with // invalid ipv4 addr