creating exports from resource

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2024-11-26 12:03:21 +01:00
committed by Jonathon Anderson
parent 77bdfba816
commit 847d11611b
5 changed files with 23 additions and 15 deletions

View File

@@ -46,7 +46,8 @@ func templateFileBlock(inc string, abortStr string) (string, error) {
wwlog.Debug("Including file block into template: %s", inc)
readFile, err := os.Open(inc)
if err != nil {
return "", err
wwlog.Info("couldn't read block %s: %s", inc, err)
return abortStr, nil
}
defer readFile.Close()
var cont string