Skip to content

Commit

Permalink
logging for windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bfoley13 committed Oct 8, 2024
1 parent c407f5c commit 5712bc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ func (cc *createCmd) createDeployment() error {
var err error

if cc.createConfig.DeployType != "" {
log.Info("Using configuration deployment type")
deployType = strings.ToLower(cc.createConfig.DeployType)
deployTemplate, err = handlers.GetTemplate(fmt.Sprintf("deployment-%s", deployType), "", cc.dest, cc.templateWriter)
if err != nil {
Expand All @@ -317,6 +318,7 @@ func (cc *createCmd) createDeployment() error {
if deployTemplate == nil || deployTemplate.Config == nil {
return errors.New("invalid deployment type")
}
log.Infof("template: %v | config: %v", deployTemplate, deployTemplate.Config)
err = validateConfigInputsToPrompts(deployTemplate.Config, cc.createConfig.DeployVariables)
if err != nil {
return err
Expand Down
2 changes: 2 additions & 0 deletions pkg/handlers/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ func (t *Template) validate() error {
}

func generateTemplate(template *Template) error {
log.Infof("template : %v | %v", template, template.Config)
err := fs.WalkDir(template.templateFiles, template.src, func(path string, d fs.DirEntry, err error) error {
log.Infof("template path: %s | %v", path, d)
if d.IsDir() {
return template.templateWriter.EnsureDirectory(strings.Replace(path, template.src, template.dest, 1))
}
Expand Down

0 comments on commit 5712bc8

Please sign in to comment.