From 3638378eaae770181d88a89f5f72c3e43561aa4a Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Mon, 16 Jan 2023 14:42:06 -0700 Subject: [PATCH] Remove redundant code Pointed out in #627 Signed-off-by: Jonathon Anderson --- internal/pkg/overlay/datastructure.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/pkg/overlay/datastructure.go b/internal/pkg/overlay/datastructure.go index 1838900b..2a427bee 100644 --- a/internal/pkg/overlay/datastructure.go +++ b/internal/pkg/overlay/datastructure.go @@ -60,8 +60,6 @@ func InitStruct(nodeInfo node.NodeInfo) TemplateStruct { // init some convininence vars tstruct.Id = nodeInfo.Id.Get() tstruct.Hostname = nodeInfo.Id.Get() - tstruct.Id = nodeInfo.Id.Get() - tstruct.Hostname = nodeInfo.Id.Get() // Backwards compatibility for templates using "Keys" tstruct.AllNodes = allNodes tstruct.Nfs = *controller.Nfs