Skip to content

Commit

Permalink
render: Fix default value for render_templates_dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
geaaru committed Oct 1, 2023
1 parent 5f0e19f commit 1ca563e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ func (i *LxdCInstance) LoadEnvironments() error {
i.Config.RenderTemplatesDirs,
)
if err != nil {
i.Logger.Error("Error on render file", file.Name())
return err
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/specs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func GenDefault(viper *v.Viper) {
viper.SetDefault("general.lxd_confdir", "")
viper.SetDefault("render_default_file", "")
viper.SetDefault("render_values_file", "")
viper.SetDefault("render_templates_dirs", []string{""})
viper.SetDefault("render_templates_dirs", []string{})

viper.SetDefault("logging.level", "info")
viper.SetDefault("logging.enable_logfile", false)
Expand Down

0 comments on commit 1ca563e

Please sign in to comment.