Add source for parse

This commit is contained in:
Christian Goll
2022-05-25 15:52:33 +02:00
parent 98e085c6f2
commit 312596276e

View File

@@ -46,6 +46,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
wwlog.Printf(wwlog.ERROR, "%s is not a file\n", args[0])
}
tstruct := overlay.InitStruct(host)
tstruct.BuildSource = args[0]
buffer, backupFile, writeFile, err := overlay.RenderTemplateFile(args[0], tstruct)
if err != nil {
return err