provisioner/chef-client: proper ordering of args [GH-1100]
This commit is contained in:
parent
3a68c8aaef
commit
9beac8d286
|
@ -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 {
|
||||
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)
|
||||
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 {
|
||||
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)
|
||||
out, err := cmd.Output()
|
||||
|
|
Loading…
Reference in New Issue