Move tstruct.Overlay from wwctl to overlay.InitStruct

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-12-18 12:14:54 -07:00
committed by Christian Goll
parent c03dc9436b
commit 0b00233ab7
4 changed files with 5 additions and 5 deletions

View File

@@ -283,7 +283,7 @@ func BuildOverlayIndir(nodeData node.Node, overlayNames []string, outputDir stri
wwlog.Debug("Created directory in overlay: %s", location)
} else if filepath.Ext(location) == ".ww" {
tstruct, err := InitStruct(nodeData)
tstruct, err := InitStruct(overlayName, nodeData)
if err != nil {
return fmt.Errorf("failed to initial data for %s: %w", nodeData.Id(), err)
}