packer/rpc: Use the SetExited for remote communicators
This commit is contained in:
parent
26a117e36f
commit
333ed6aa78
|
@ -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{}))
|
||||
|
|
Loading…
Reference in New Issue