provisioner/chef-client: proper ordering of args [GH-1100]

This commit is contained in:
Mitchell Hashimoto 2014-05-01 14:13:22 -07:00
parent 3a68c8aaef
commit 9beac8d286
1 changed files with 2 additions and 2 deletions

View File

@ -342,7 +342,7 @@ func (p *Provisioner) createDir(ui packer.Ui, comm packer.Communicator, dir stri
func (p *Provisioner) cleanNode(ui packer.Ui, comm packer.Communicator, node string) error { func (p *Provisioner) cleanNode(ui packer.Ui, comm packer.Communicator, node string) error {
ui.Say("Cleaning up chef node...") ui.Say("Cleaning up chef node...")
app := "knife node delete -y " + node app := fmt.Sprintf("knife node delete %s -y", node)
cmd := exec.Command("sh", "-c", app) cmd := exec.Command("sh", "-c", app)
out, err := cmd.Output() out, err := cmd.Output()
@ -358,7 +358,7 @@ func (p *Provisioner) cleanNode(ui packer.Ui, comm packer.Communicator, node str
func (p *Provisioner) cleanClient(ui packer.Ui, comm packer.Communicator, node string) error { func (p *Provisioner) cleanClient(ui packer.Ui, comm packer.Communicator, node string) error {
ui.Say("Cleaning up chef client...") ui.Say("Cleaning up chef client...")
app := "knife client delete -y " + node app := fmt.Sprintf("knife client delete %s -y", node)
cmd := exec.Command("sh", "-c", app) cmd := exec.Command("sh", "-c", app)
out, err := cmd.Output() out, err := cmd.Output()