Commit 3b097f98 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

provisioner/chef-solo: use proper exceute command

parent 476d870b
...@@ -222,7 +222,7 @@ func (p *Provisioner) createDir(ui packer.Ui, comm packer.Communicator, dir stri ...@@ -222,7 +222,7 @@ func (p *Provisioner) createDir(ui packer.Ui, comm packer.Communicator, dir stri
} }
func (p *Provisioner) executeChef(ui packer.Ui, comm packer.Communicator, config string, json string) error { func (p *Provisioner) executeChef(ui packer.Ui, comm packer.Communicator, config string, json string) error {
command, err := p.config.tpl.Process(p.config.InstallCommand, &ExecuteTemplate{ command, err := p.config.tpl.Process(p.config.ExecuteCommand, &ExecuteTemplate{
ConfigPath: config, ConfigPath: config,
JsonPath: json, JsonPath: json,
Sudo: !p.config.PreventSudo, Sudo: !p.config.PreventSudo,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment