mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
generator: fixed issue with templates not being generated
This commit is contained in:
parent
4f836630b0
commit
88d365155f
3 changed files with 19 additions and 5 deletions
|
|
@ -8,6 +8,7 @@ import (
|
|||
"github.com/OpenCHAMI/configurator/pkg/util"
|
||||
"github.com/nikolalohinski/gonja/v2"
|
||||
"github.com/nikolalohinski/gonja/v2/exec"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
type Template struct {
|
||||
|
|
@ -65,6 +66,8 @@ func ApplyTemplates(mappings Mappings, templates map[string]Template) (FileMap,
|
|||
outputs[path] = b.Bytes()
|
||||
}
|
||||
|
||||
log.Debug().Any("templates", templates).Any("outputs", outputs).Any("mappings", mappings).Msg("apply templates")
|
||||
|
||||
return outputs, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue