packer/rpc: Use the SetExited for remote communicators

This commit is contained in:
Mitchell Hashimoto 2013-07-29 12:07:37 -07:00
parent 26a117e36f
commit 333ed6aa78
1 changed files with 1 additions and 2 deletions

View File

@ -91,8 +91,7 @@ func (c *communicator) Start(cmd *packer.RemoteCmd) (err error) {
log.Panic(err)
}
cmd.ExitStatus = finished.ExitStatus
cmd.Exited = true
cmd.SetExited(finished.ExitStatus)
}()
err = c.client.Call("Communicator.Start", &args, new(interface{}))