fmt
This commit is contained in:
parent
02e23aa10b
commit
f2687cbdd0
|
@ -20,8 +20,8 @@ type Config struct {
|
|||
|
||||
ConfigTemplate string `mapstructure:"config_template"`
|
||||
CookbookPaths []string `mapstructure:"cookbook_paths"`
|
||||
RolesPath string `mapstructure:"roles_path"`
|
||||
DataBagsPath string `mapstructure:"data_bags_path"`
|
||||
RolesPath string `mapstructure:"roles_path"`
|
||||
DataBagsPath string `mapstructure:"data_bags_path"`
|
||||
ExecuteCommand string `mapstructure:"execute_command"`
|
||||
InstallCommand string `mapstructure:"install_command"`
|
||||
RemoteCookbookPaths []string `mapstructure:"remote_cookbook_paths"`
|
||||
|
@ -39,9 +39,9 @@ type Provisioner struct {
|
|||
}
|
||||
|
||||
type ConfigTemplate struct {
|
||||
CookbookPaths string
|
||||
RolesPath string
|
||||
DataBagsPath string
|
||||
CookbookPaths string
|
||||
RolesPath string
|
||||
DataBagsPath string
|
||||
}
|
||||
|
||||
type ExecuteTemplate struct {
|
||||
|
@ -297,8 +297,8 @@ func (p *Provisioner) createConfig(ui packer.Ui, comm packer.Communicator, local
|
|||
|
||||
configString, err := p.config.tpl.Process(tpl, &ConfigTemplate{
|
||||
CookbookPaths: strings.Join(cookbook_paths, ","),
|
||||
RolesPath: roles_path,
|
||||
DataBagsPath: data_bags_path,
|
||||
RolesPath: roles_path,
|
||||
DataBagsPath: data_bags_path,
|
||||
})
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
|
Loading…
Reference in New Issue