From 312596276eddab1c163af3d9bb1729d2b94535d3 Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Wed, 25 May 2022 15:52:33 +0200 Subject: [PATCH] Add source for parse --- internal/app/wwctl/overlay/parse/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/app/wwctl/overlay/parse/main.go b/internal/app/wwctl/overlay/parse/main.go index 0090ca3e..35e24f7c 100644 --- a/internal/app/wwctl/overlay/parse/main.go +++ b/internal/app/wwctl/overlay/parse/main.go @@ -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