Merge pull request #1077 from jcline/chef_client_cleanup

provisioners/chef-client: delete correct client
This commit is contained in:
Mitchell Hashimoto 2014-04-28 15:31:39 -07:00
commit d236e139ac
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}