Commit 6017f895 authored by James Cline's avatar James Cline

provisioners/chef-client: delete correct client

The server URL was being passed through rather than the client name.
parent a629f165
......@@ -208,7 +208,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
}
if !p.config.SkipCleanClient {
if err2 := p.cleanClient(ui, comm, serverUrl); err2 != nil {
if err2 := p.cleanClient(ui, comm, nodeName); err2 != nil {
return fmt.Errorf("Error cleaning up chef client: %s", err2)
}
}
......
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